Learn R Programming

spam (version 1.4-0)

Summary: Rounding of Numbers

Description

Applies the Math2 group functions to spam objects

Usage

# max(x,..., na.rm = FALSE)

Arguments

x

spam object.

na.rm

a logical indicating whether missing values should be removed.

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.

Details

The na.rm argument is only meaninful if NAOK=TRUE.

See Also

Math.spam and Math2.

Examples

Run this code
getGroupMembers("Summary")

smat <- diag.spam( runif(15))
range(smat)
spam.options(structurebased=FALSE)
range(smat)


max( log(spam(c(1,-1))), na.rm=TRUE)

# allow 'NA's first:
spam.options( NAOK=TRUE)
max( log(spam(c(1,-1))), na.rm=TRUE)

Run the code above in your browser using DataLab