cumsum | R Documentation |
Theses are methods to ‘overload’ the sum()
,
cumsum()
and prod()
functions for big
rationals and big integers.
## S3 method for class 'bigz'
cumsum(x)
## S3 method for class 'bigq'
cumsum(x)
## S3 method for class 'bigz'
sum(..., na.rm = FALSE)
## S3 method for class 'bigq'
sum(..., na.rm = FALSE)
## S3 method for class 'bigz'
prod(..., na.rm = FALSE)
## S3 method for class 'bigq'
prod(..., na.rm = FALSE)
x , ... |
R objects of class |
na.rm |
logical indicating if missing values ( |
return an element of class bigz or bigq.
Antoine Lucas
apply
x <- as.bigz(1:12)
cumsum(x)
prod(x)
sum(x)
x <- as.bigq(1:12)
cumsum(x)
prod(x)
sum(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.