WACf: WACf

WACfR Documentation

WACf

Description

List of statistical functions

Usage

WACf(V)  # use [[n]] to select nth function or $name to select function name.

Arguments

V

A variable that may be scalar, vector, or data.frame column.

Format

An object of class list of length 6.

Details

Contains mean, sd, sdMean, median, kount, length with NAs removed, in a list that can be used with lapply(WACf, function(f) f(V)) with V a vector. To use individual functions: WACf$sdMean(V). kount is the number of non-missing values in the parameter.

Value

The function value: mean, sd, sdMean, median, kount, or length. kount is the number of non-missing values in a vector. Values from individual functions are returned invisibly; i.e., they must be assigned to something as in the examples or they will not print. The result of lapply() will still print if not assigned. More concise output is obtained from STAT <- lapply(); str(STAT). Consider also, for concise display: dplyr::as_tibble(lapply(WACf, function(f) f(V)))

Author(s)

William Cooper

Examples

STAT <- lapply(WACf, function(f) f(RAFdata$TASX))
sdATX <- WACf$sd(RAFdata$ATX)

NCAR/Ranadu documentation built on Jan. 27, 2023, 1:09 a.m.