Learn R Programming

dMod (version 0.3.1)

+.objlist: Add two lists element by element

Description

Add two lists element by element

Usage

"+"(out1, out2)

Arguments

out1
List of numerics or matrices
out2
List with the same structure as out1 (there will be no warning when mismatching)

Value

List of length of out1.

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.