sum | R Documentation |
Various summary statistics for brobs and glubs
x,... |
Objects of class |
na.rm |
Boolean, with default |
For a brob
object, being NA
is not entirely
straightforward. The S4 method for is.na
is too
“strict” for some of the functions considered here. Consider
max(a)
where a
includes only positive, fully
specified, elements, and elements with known negative sign and
exponents that include NA
values. Here, max(a)
is unambiguously determined.
Similar logic applies to min()
and, by extension,
range()
.
Function prod()
is very slow for long glub
vectors. It has to compute four Brobdingnagian products and two
Brobdingnagian sums per element of its argument, and this takes a long
time.
Robin K. S. Hankin
is.na
a <- as.brob(1:10) max(cbrob(1:10,brob(NA,FALSE)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.