Learn R Programming

compositions (version 2.0-4)

gsi.add: Internal functions: Parallel operations of single and multiple datasets

Description

The given operations are performed in parallel for multiple datasets or for two single datasets, or for multiple datasets with a single dataset.

Usage

gsi.add(x,y)
gsi.sub(x,y)
gsi.mul(x,y)
gsi.div(x,y)

Value

a vector or a matrix with the operated values

Arguments

x

a vector or a matrix

y

a vector or a matrix

Author

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

Details

All operations +,-,*,/ are performed on unclassed objects.

See Also

perturbe

Examples

Run this code
tmp1 <- matrix(1:12,ncol=3)
tmp2 <- 1:3
#gsi.add(tmp1,tmp2)
#gsi.sub(tmp1,tmp2)
#gsi.mul(tmp1,tmp2)
#gsi.div(tmp1,tmp2)

#gsi.add(tmp2,tmp2)
#gsi.sub(tmp2,tmp2)
#gsi.mul(tmp2,tmp2)
#gsi.div(tmp2,tmp2)

#gsi.add(tmp1,tmp1)
#gsi.sub(tmp1,tmp1)
#gsi.mul(tmp1,tmp1)
#gsi.div(tmp1,tmp1)

Run the code above in your browser using DataLab