colsums: colSums

colsumsR Documentation

colSums

Description

Row and columns sums/means.

Usage

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

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

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

## S4 method for signature '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

library(float)

s = flrunif(5, 3)

rowSums(s)
colSums(s)


float documentation built on May 29, 2024, 8:13 a.m.