univar {rapportools} | R Documentation |
Descriptive Statistics
Description
This function operates only on vectors or their subsets, by calculating a descriptive statistic specified in fn
argument.
Usage
univar(x, subset = NULL, fn, na.rm = TRUE, ...)
Arguments
x |
a numeric variable to be summarised |
subset |
an expression that evaluates to logical vector (defaults to |
fn |
a function or a function name to be applied on a variable or it's subset |
na.rm |
a logical value indicating whether |
... |
additional arguments for function specified in |
Value
a numeric
[Package rapportools version 1.1 Index]