Skip to contents

Calculates the mean for each row (column) of a matrix-like object.

Usage

# S4 method for class 'dbMatrix'
rowMeans(x, na.rm = FALSE, dims = 1, ...)

# S4 method for class 'dbMatrix'
colMeans(x, na.rm = FALSE, dims = 1, ...)

Arguments

x

An NxK matrix-like object, a numeric data frame, or an array-like object of two or more dimensions.

na.rm

Always TRUE for dbMatrix queries. Included for compatibility with the generic.

dims

Always 1 for dbMatrix queries. Included for compatibility with the generic.

...

Additional arguments passed to specific methods.