math_funs | R Documentation |
Mathematical helper functions
geomean(x, trim = 0, na.rm = FALSE, base = exp(1))
geosd(x, na.rm = FALSE, base = exp(1))
se(x, na.rm = FALSE)
logp1(x, base = 10)
x |
Numeric vector. |
trim |
The fraction (0 to 0.5) of observations to be trimmed from each
end of x before the mean is computed. Values of trim outside that range
are taken as the nearest endpoint. See |
na.rm |
Logical. Should missing values be removed? |
base |
A positive or complex number: the base with respect to which logarithms are computed. Defaults to 'exp(1)'. |
'geomean' calculates the geometric mean.
'geosd' calculates the geometric standard deviation
'se' calculates the standard error
'logp1' calculates log(x + 1) for any base. The default base is 10.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.