Sd: Standard deviation of all the values present in its...

View source: R/noNa.r

SdR Documentation

Standard deviation of all the values present in its arguments.

Description

‘Sd’ returns the standard deviation of all the values present in its arguments, omitting NA values. Useful to use inside apply functions to avoid errors due to NA's.

Usage

Sd(x)

Arguments

x

A vector containing numeric values

Value

A numeric scalar, the standard deviation of the inputs

Examples

x <- matrix(c((1:11)^2,NA), ncol=4)
apply(x,1,Sd)


benjaminpeeters/BePe documentation built on July 7, 2022, 5:45 p.m.