Learn R Programming

Omisc (version 0.1.5)

add: add

Description

add

Usage

add(x)

Value

returns a single summed object (e.g., a matrix)

Arguments

x

a list to be summed. Useful for doing elementwise summation of a list of matrices.

Examples

Run this code
x<-list(matrix(c(1:4),nrow=2),matrix(c(1:4),nrow=2))
add(x)

Run the code above in your browser using DataLab