as.centsums {fromo} | R Documentation |
Coerce to a centsums object.
Description
Convert data to a centsums
object.
Usage
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 |
na.rm |
whether to remove |
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
set.seed(123)
x <- rnorm(1000)
cs <- as.centsums(x, order=5)
[Package fromo version 0.2.1 Index]