descStat function

Computing simple descriptive statistics of a numeric vector.

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)

Arguments

  • x: A numeric vector
  • na.rm: Should missing values be removed

Returns

A vector with named elements.

Examples

x <- c(1, 2, 3, 4, NA, NaN) descStat(x)

See Also

summaryBy, summary_by

Author(s)

Gregor Gorjanc; gregor.gorjanc@bf.uni-lj.si