suma: Compute sum of two traits

Description Usage Arguments Details Value Author(s) Examples

View source: R/suma.R

Description

Compute the sum of two traits. Missing values do not propagate.

Usage

1
suma(a, b)

Arguments

a

Name of trait 1 to sum

b

Name of trait 2 to sum.

Details

Missing values do not propagate. If NA is present for both traits then NA is applied to the sum.

Value

It returns the sum of the two traits.

Author(s)

Raul Eyzaguirre.

Examples

1
2
## Compute total biomass as the sum of trw and vw
suma(pjpz09$trw, pjpz09$vw)

reyzaguirre/st4gi documentation built on April 14, 2018, 9:15 a.m.