Learn R Programming

kazaam (version 0.1-0)

col_ops: Column Operations

Description

Column operations (currently sums/means) for shaq objects.

Usage

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

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

Arguments

x

A shaq.

na.rm

Should NA's be removed?

dims

Ignored.

Value

A regular vector.

Communication

The operation consists of a local column sum operation, followed by an allreduce() call, quadratic on the number of columns.

Examples

Run this code

library(kazaam)
x = ranshaq(runif, 10, 3)
cs = colSums(x)
comm.print(cs)

finalize()


Run the code above in your browser using DataLab