Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rmultarithm

vectorial arithmetic for datasets in a classical vector scale


Description

vector space operations computed for multiple vectors in parallel

Usage

## Methods for class "rmult"
## x+y
## x-y
## -x
## x*r
## r*x
## x/r

Arguments

x

an rmult vector or dataset of vectors

y

an rmult vector or dataset of vectors

r

a numeric vector of size 1 or nrow(x)

Details

The operators try to mimic the parallel operation of R on vectors of real numbers on vectors of vectors represented as matrices containing the vectors as rows.

Value

an object of class "rmult" containing the result of the corresponding operation on the vectors.

Author(s)

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

See Also

Examples

x <- rmult(matrix( sqrt(1:12), ncol= 3 ))
x
x+x
x + rmult(1:3)
x * 1:4
1:4 * x
x / 1:4
x / 10

compositions

Compositional Data Analysis

v2.0-1
GPL (>= 2)
Authors
K. Gerald van den Boogaart <boogaart@hzdr.de>, Raimon Tolosana-Delgado, Matevz Bren
Initial release
2021-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.