as.centsums | R Documentation |
Convert data to a centsums
object.
as.centsums(x, order=3, na.rm=TRUE)
## Default S3 method:
as.centsums(x, order = 3, na.rm = TRUE)
x |
a numeric, array, or matrix. |
order |
the order, defaulting to |
na.rm |
whether to remove |
Computes the raw sums on data, and stuffs the results into a
centsums
object.
A centsums object.
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.
Steven E. Pav shabbychef@gmail.com
set.seed(123)
x <- rnorm(1000)
cs <- as.centsums(x, order=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.