Learn R Programming

R.huge (version 0.10.1)

rowSums.FileMatrix: Calculates the sum for each row

Description

Calculates the sum for each row.

Usage

# S3 method for FileMatrix
rowSums(x, na.rm=FALSE, doCount=FALSE, rows=NULL, columns=NULL, ...)

Value

Returns a numeric

vector.

Arguments

na.rm

If TRUE, NA values are excluded.

doCount

If TRUE, the number of included values are counted and returned as an attribute.

rows

An integer vector of rows for which the sum should be calculated. If NULL, all rows are considered.

columns

An integer vector of columns for which the sum should be calculated. If NULL, all columns are considered.

...

Not used.

Author

Henrik Bengtsson

See Also

*rowMeans(). For more information see FileMatrix.