Learn R Programming

spam (version 0.13-3)

Math2: Rounding of Numbers

Description

Applies the Math2 group functions to 'spam' objects

Usage

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

Details

This set of functions The for this generic class typical na.rm argument has no weight here as NA/NaN/Inf are not meaningful (yet).

See Also

Math

Examples

Run this code
getGroupMembers("Math2")

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

Run the code above in your browser using DataLab