Learn R Programming

pbdDMAT (version 0.2-3)

Summary: Distributed Matrix Summary

Description

Summarize a distributed matrix. Gives min, max, mean, etc. by column.

Usage

## S3 method for class 'ddmatrix':
summary(object)

Arguments

object
numeric distributed matrix

Value

  • A table on processor 0, NULL on all other processors.

Details

The return is on process 0 only.

Examples

Run this code
# Save code in a file "demo.r" and run with 2 processors by
# > mpiexec -np 2 Rscript demo.r

library(pbdDMAT, quiet = TRUE)
init.grid()

# don't do this in production code
x <- matrix(1:16, ncol=4)
dx <- as.ddmatrix(x) 

summary(dx)

finalize()

Run the code above in your browser using DataLab