plus-.objlist: Add two lists element by element

Description Usage Arguments Details Value

Description

Add two lists element by element

Usage

1
2
## S3 method for class 'objlist'
out1 + out2

Arguments

out1

List of numerics or matrices

out2

List with the same structure as out1 (there will be no warning when mismatching)

Details

If out1 has names, out2 is assumed to share these names. Each element of the list out1 is inspected. If it has a names attributed, it is used to do a matching between out1 and out2. The same holds for the attributed dimnames. In all other cases, the "+" operator is applied the corresponding elements of out1 and out2 as they are.

Value

List of length of out1.


dMod documentation built on Jan. 27, 2021, 1:07 a.m.