R: Calculates the sum for each row

rowSums.FileMatrix {R.huge} | R Documentation

## Calculates the sum for each row

### Description

Calculates the sum for each row.

### Usage

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

### 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.

### Value

Returns a `numeric` `vector`.

### Author(s)

Henrik Bengtsson

### See Also

`*rowMeans()`. For more information see `FileMatrix`.

[Package R.huge version 0.9.0 Index]