Learn R Programming

Omisc (version 0.1.2)

add: add

Description

add

Usage

add(x)

Arguments

x

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

Value

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

Examples

Run this code
# NOT RUN {
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