math_funs: Mathematical helper functions

math_funsR Documentation

Mathematical helper functions

Description

Mathematical helper functions

Usage

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)

Arguments

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 mean

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)'.

Details

'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.


steffenhartmeyer/lightdosimetry documentation built on Jan. 29, 2024, 12:48 p.m.