Computing simple descriptive statistics of a numeric vector.
Computing simple descriptive statistics of a numeric vector - not unlike what proc means of SAS does
descStat(x, na.rm = TRUE)
x
: A numeric vectorna.rm
: Should missing values be removedA vector with named elements.
x <- c(1, 2, 3, 4, NA, NaN) descStat(x)
summaryBy
, summary_by
Gregor Gorjanc; gregor.gorjanc@bf.uni-lj.si