covMat: Compute Sample Covariance Matrix

Description Usage Arguments Value

View source: R/covMat.R

Description

covMat computes the sample covariance matrix of a data set. If a variable in the dataset has zero variance, then its corresponding row and column in the covariance matrix are zero vectors.

Usage

1
covMat(data, center = TRUE, scale = TRUE)

Arguments

data

The data for which to compute the sample covariance matrix.

center

A logical indicating whether the target and background data sets should be centered to mean zero.

scale

A logical indicating whether the target and background data sets should be scaled to unit variance.

Value

the covariance matrix of the data.


scPCA documentation built on Nov. 8, 2020, 6 p.m.