Rounding of Numbers
Summary.Rd
Applies the Math2
group functions to spam
objects
Value
If structurebased=TRUE
, all functions operate on the vector x@entries
and return the
result thereof.
Conversely, if structurebased=FALSE
, the result is identical to
one with as.matrix(x)
input.
Examples
getGroupMembers("Summary")
#> [1] "max" "min" "range" "prod" "sum" "any" "all"
smat <- diag.spam( runif(15))
range(smat)
#> [1] 0.0000000 0.9776359
options(spam.structurebased=FALSE)
range(smat)
#> [1] 0.0000000 0.9776359
if (FALSE) { # \dontrun{
max( log(spam(c(1,-1))), na.rm=TRUE)
} # }
# allow 'NA's first:
# TODO
# options(spam.NAOK=TRUE)
# max( log(spam(c(1,-1))), na.rm=TRUE)