中央値の計算

my_median(x, na.rm = TRUE)

Arguments

x

数値ベクトル

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Value

ベクトル x の中央値

Examples

my_median(1:12)
#> [1] 6.5