as.centsums: Coerce to a centsums object.

Description Usage Arguments Details Value Note Author(s) Examples

View source: R/zzz_centsums.R

Description

Convert data to a centsums object.

Usage

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

## Default S3 method:
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.

Details

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

Value

A centsums object.

Note

The moment computations provided by fromo are numerically robust, but will often not provide the same results as the 'standard' implementations, due to differences in roundoff. We make every attempt to balance speed and robustness. User assumes all risk from using the fromo package.

Author(s)

Steven E. Pav shabbychef@gmail.com

Examples

1
2
3
set.seed(123)
x <- rnorm(1000)
cs <- as.centsums(x, order=5)

shabbychef/fromo documentation built on April 11, 2021, 11:03 p.m.