In addition to generic R functions (e.g. 'mean', 'max', etc.), these functions are designed to provide simple access to common calculations.

binary(x)

count(x)

cv(x)

entropy(x)

majority(x)

iqr(x)

Arguments

x

numeric vector of values to summarize.

Value

numeric value

Details

These functions are designed to be used within calculate_footstats which processes a data.table by group ID. Therefore all functions take a vector of values and return a single summary statistic. These functions are not likely to be used on their own.