Applies the Math2
group functions to 'spam
' objects
Usage
# S4 method for class 'spam'
round(x, digits = 0)
# S4 method for class 'spam'
signif(x, digits = 6)
Arguments
- x
spam object.
- digits
integer indicating the precision to be used.
Value
All functions operate on the vector x@entries
and return the
result thereof.
Examples
getGroupMembers("Math2")
#> [1] "round" "signif"
set.seed(12)
smat <- diag.spam( rnorm(15))
round(smat, 3)
#> [1] -1.481 1.577 -0.957 -0.920 -1.998 -0.272 -0.315 -0.628 -0.106 0.428
#> [11] -0.778 -1.294 -0.780 0.012 -0.152
#> Class 'spam' (32-bit)