Learn R Programming

rockchalk (version 1.6.2)

cutBySD: Returns center values of x, the mean, mean-std.dev, mean+std.dev

Description

If the numeric variable has fewer than 6 unique observed values, this will send the data to cutByTable.

Usage

cutBySD(x, n = 3)

Arguments

x
A numeric variable
n
Should be either 3 or 5. If 3, values that divide the data at c(m-sd, m, m+sd) are returned. If 5, the returned values are c(m-2sd, m-sd, m, m+sd, m+2sd). Other values of n will be rounded to 3 or 5.

Value

  • A named vector