This function computes the sample root-mean-square (RMS).
Usage
rms(x, na.rm = FALSE)
Value
sample root-mean-square as a numeric vector. The default choice is that
any NA values will be kept (na.rm = FALSE). This can be changed by
specifying na.rm = TRUE, such as rms(x, na.rm = TRUE).
Arguments
x
numeric vector that contains the sample data points.
na.rm
logical vector that determines whether the missing values
should be removed or not.
Masoud Olia, Ph.D., P.E. and Contributing Authors, Barron’s FE (Fundamentals of Engineering Exam), 3rd Edition, Hauppauge, New York: Barron’s Educational Series, Inc., 2015, page 84.
See Also
sgm for geometric mean, shm for harmonic mean, cv
for coefficient of variation (CV), relerror for relative error,
approxerror for approximate error, and ranges for sample range.