winsd: Winsorized sample standard deviation

Description Usage Arguments Examples

Description

Winsorized sample standard deviation

Usage

1
winsd(x, trim = 0.2, na.rm = FALSE)

Arguments

x

An R object. Currently there are methods for numeric/logical vectors and date, date-time and time interval objects. Complex vectors are allowed for trim = 0, only.

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.

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Examples

1
2
x <- c(1, 2, 8, 9, 10, 16, 18, 22, 27, 29, 35, 42)
winsd(x)

shizidushu/fsrs documentation built on May 26, 2019, 4:32 a.m.