Learn R Programming

spam (version 2.11-1)

Math2: Rounding of Numbers

Description

Applies the Math2 group functions to 'spam' objects

Usage

# S4 method for spam
round(x, digits = 0)
# S4 method for spam
signif(x, digits = 6)

Value

All functions operate on the vector x@entries and return the result thereof.

Arguments

x

spam object.

digits

integer indicating the precision to be used.

Author

Reinhard Furrer

See Also

Ops.spam and Math.spam

Examples

Run this code
getGroupMembers("Math2")

set.seed(12)
smat <- diag.spam( rnorm(15))
round(smat, 3)

Run the code above in your browser using DataLab