spread_stats {MSMU} | R Documentation |
Summary of Spread Statistics
Description
Computes a variety of spread statistics for a numeric vector, including:
standard deviation, iqr, the normalized minimum, maximum,
and range as well as the percentage of data within 1, 2,
and 3 standard deviations (via pct()
)
Usage
spread_stats(x)
Arguments
x |
A numeric vector |
Value
- sd
Standard Deviation
- iqr
Inter Quartile Range
- minz
Normalized Minimum
- maxz
Normalized Maximum
- diffz
Normalized Range
- pct1
Percent of data within 1 standard deviation from
pct()
- pct2
Percent of data within 2 standard deviation from
pct()
- pct3
Percent of data within 3 standard deviation from
pct()
See Also
Examples
# Spread stats of random normal data
set.seed(123)
x <- rnorm(1000)
spread_stats(x)
# Spread stats of mpg in mtcars
data("mtcars")
spread_stats(mtcars$mpg)
[Package MSMU version 0.1.2 Index]