Learn R Programming

eHDPrep (version 1.3.3)

sum_catchNAs: Sum vector safely for semantic enrichment

Description

sums values in x (ignoring NAs). If all values in x are NA, returns NA (rather than 0),

Usage

sum_catchNAs(x)

Value

sum of x

Arguments

x

numeric vector