float (version 0.2-3)

colsums: colSums

Description

Row and columns sums/means.

Usage

# S4 method for float32
colSums(x, na.rm = FALSE, dims = 1)

# S4 method for float32 rowSums(x, na.rm = FALSE, dims = 1)

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

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

Arguments

x

A float vector/matrix.

na.rm

Should missing values be removed?

dims

Ignored. Be honest, you've never even used this argument before, have you?

Value

A matrix of the same type as the highest precision input.

Examples

Run this code
# NOT RUN {
library(float)

s = flrunif(5, 3)

rowSums(s)
colSums(s)

# }

Run the code above in your browser using DataCamp Workspace