na2zero: NA to zero

Description Usage Arguments Value

Description

Helper function to convert NA's to 0 when summing.

Usage

1

Arguments

x

A numeric value.

Value

The value of x if x has a value and 0 if x is na or has length 0. If x has length >1, an error is thrown.


SWS-Methodology/faoswsAupus documentation built on May 9, 2019, 11:45 a.m.