Learn R Programming

spectrolab (version 0.0.18)

var: Variance

Description

var computes the variance spectrum. Note that values will not reflect value anymore, but the variance of the value instead.

Usage

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

Value

variance

Arguments

x

a numeric vector, matrix or data frame

y

NULL (default) or a vector, matrix or data frame with compatible dimensions to x.

na.rm

logical. Should missing values be removed?

use

an optional character string giving a method for computing covariances in the presence of missing values. This must be (an abbreviation of) one of the strings "everything", "all.obs", "complete.obs", "na.or.complete", or "pairwise.complete.obs"