datastats {dsdp} | R Documentation |
Compute the mean and the standard deviation of a data set
represented by the pair of the numeric vectors data
and optionally its
frequency vector freq
.
datastats(data, freq = NULL)
data |
A numeric vector of a data set. |
freq |
A frequency vector corresponding to the |
The mean and the standard deviation of a data set.
## Without a frequency data
datastats(mix2gauss$n200)
## With a frequency data
datastats(mix2gaussHist$n200p, mix2gaussHist$n200f)