Learn R Programming

fromo (version 0.2.1)

as.centsums: Coerce to a centsums object.

Description

Convert data to a centsums object.

Usage

as.centsums(x, order=3, na.rm=TRUE)

# S3 method for default as.centsums(x, order = 3, na.rm = TRUE)

Arguments

x

a numeric, array, or matrix.

order

the order, defaulting to length(sums)+1.

na.rm

whether to remove NA.

Value

A centsums object.

Details

Computes the raw sums on data, and stuffs the results into a centsums object.

Examples

Run this code
# NOT RUN {
set.seed(123)
x <- rnorm(1000)
cs <- as.centsums(x, order=5)
# }

Run the code above in your browser using DataLab