Learn R Programming

fromo (version 0.2.4)

as.centcosums: Coerce to a centcosums object.

Description

Convert data to a centcosums object.

Usage

as.centcosums(x, order=2, na.omit=TRUE)

# S3 method for default as.centcosums(x, order = 2, na.omit = TRUE)

Value

A centcosums object.

Arguments

x

a matrix.

order

the order, defaulting to 2.

na.omit

whether to remove rows with NA.

Author

Steven E. Pav shabbychef@gmail.com

Details

Computes the raw cosums on data, and stuffs the results into a centcosums object.

Examples

Run this code
set.seed(123)
x <- matrix(rnorm(100*3),ncol=3)
cs <- as.centcosums(x, order=2)

Run the code above in your browser using DataLab