trim_mean_sd: Trimmed Mean and Standard Deviation

Description Usage Arguments Value Examples

Description

Calculates both trimmed mean and standard deviation from a vector

Usage

1
trim_mean_sd(x, trim = 0.2)

Arguments

x

numeric vector

trim

value between 0 and 0.5, percent trim from each side of the distribution. Calculates quantiles for trim and 1-trim and sets values outside to NA

Value

Vector of length 2, with mean/sd named elements

Examples

1
2
x = rnorm(100)
trim_mean_sd(x)

muschellij2/msseg documentation built on May 23, 2019, 9:53 a.m.