suma: Compute sum of two vectors

Description Usage Arguments Details Value Author(s) Examples

View source: R/suma.R

Description

Compute the sum of two vectors elementwise. Missing values do not propagate.

Usage

1
suma(v1, v2)

Arguments

v1

Name of vector 1.

v2

Name of vector 2.

Details

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

Value

It returns the sum of the two vectors elementwise.

Author(s)

Raul Eyzaguirre.

Examples

1
suma(pjpz09$trw, pjpz09$vw)

reyzaguirre/st4gi documentation built on Oct. 7, 2018, 11:05 a.m.