Median of a vector
Median of a vector.
med(x,na.rm=FALSE) Median(x,na.rm=FALSE)
x |
A numerical vector. |
na.rm |
TRUE or FAlSE for remove NAs if exists. |
The function is written in C++ and this is why it is very fast.
The median of the vector of a numbers.
Manos Papadakis <papadakm95@gmail.com>
R implementation and documentation: Michail Tsagris <mtsagris@yahoo.gr> and Manos Papadakis <papadakm95@gmail.com>.
x <- rnorm(1000) a1 <- Median(x) a2 <- median(x)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.