chop_mean_sd {santoku} | R Documentation |
Chop by standard deviations
Description
Intervals are measured in standard deviations on either side of the mean.
Usage
chop_mean_sd(x, sds = 1:3, ..., raw = FALSE, sd = deprecated())
brk_mean_sd(sds = 1:3, sd = deprecated())
tab_mean_sd(x, sds = 1:3, ..., raw = FALSE)
Arguments
x |
A vector. |
sds |
Positive numeric vector of standard deviations. |
... |
Passed to |
raw |
Logical. Use raw values in labels? |
sd |
Details
In version 0.7.0, these functions changed to specifying sds
as a vector.
To chop 1, 2 and 3 standard deviations around the mean, write
chop_mean_sd(x, sds = 1:3)
instead of chop_mean_sd(x, sd = 3)
.
Value
chop_*
functions return a factor
of the same length as x
.
brk_*
functions return a function
to create breaks
.
tab_*
functions return a contingency table()
.
See Also
Other chopping functions:
chop()
,
chop_equally()
,
chop_evenly()
,
chop_fn()
,
chop_n()
,
chop_proportions()
,
chop_quantiles()
,
chop_width()
,
fillet()
Examples
chop_mean_sd(1:10)
chop(1:10, brk_mean_sd())
tab_mean_sd(1:10)
[Package santoku version 1.0.0 Index]