stdev
Standard Deviation

Description

Returns the standard deviation of a vector or columns of a matrix.

Usage

stdev(x, na.rm = FALSE, ...)    

Arguments

x numeric vector or anything that can be turned into a numeric vector with c() such as a numeric matrix or array.
na.rm if FALSE, missing values (NA) in the input result in the output being missing (NA).
... Other arguments which are passed to colStdevs.

Details

A matrix or an array is treated like a vector in stdev. Use sd or colStdevs if you want the standard deviation of each column in a matrix.
Value
Standard deviation of the input, which is treated as a vector.
Differences between TIBCO Enterprise Runtime for R and Open-source R
stdev is not in open-source R.
See Also
colStdevs, var, sd, colVars.
Examples
stdev(Sdatasets::longley.x) 
sd(Sdatasets::longley.x)
colStdevs(Sdatasets::longley.x) # the same as sd
Package terrUtils version 6.0.0-69
Package Index