var: Variance and Standard Deviation

Description Usage Arguments Value See Also Examples

Description

var and sd compute the variance and standard deviation of a vector x.

NOTE: This man page is for the var and sd, S4 generic functions defined in the BiocGenerics package. See ?stats::var and ?stats::sd for the default methods (defined in the stats package). Bioconductor packages can define specific methods for objects (typically array-like) not supported by the default method.

Usage

1
2
     var(x, y = NULL, na.rm = FALSE, use)
     sd(x, na.rm = FALSE)

Arguments

x

a vector-like object

y

a vector-like object, or NULL

na.rm, use

see var

Value

See ?stats::var and ?stats::sd for the value returned by the default methods.

Specific methods defined in Bioconductor packages will typically return an object of the same class as the input object.

See Also

Examples

1
2
3
var
showMethods("var")
selectMethod("var", "ANY")  # the default method

nturaga/BiocGenerics documentation built on May 7, 2019, 11:15 a.m.