Learn R Programming

doBy (version 4.6.21)

descStat: Computing simple descriptive statistics of a numeric vector.

Description

Computing simple descriptive statistics of a numeric vector - not unlike what proc means of SAS does

Usage

descStat(x, na.rm = TRUE)

Value

A vector with named elements.

Arguments

x

A numeric vector

na.rm

Should missing values be removed

Author

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

See Also

summaryBy, summary_by

Examples

Run this code

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

Run the code above in your browser using DataLab