Applies the Math2 group functions to 'spam' objects

# S4 method for spam
round(x, digits = 0)
# S4 method for 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.

See also

Author

Reinhard Furrer

Examples

getGroupMembers("Math2")
#> [1] "round"  "signif"

smat <- diag.spam( rnorm(15))
round(smat, 3)
#>  [1]  0.640  0.683  0.073  0.491 -0.185  0.398  0.364  0.332 -0.236 -0.349
#> [11]  1.535 -1.062 -1.413 -0.720 -0.535
#> Class 'spam' (32-bit)