Learn R Programming

eHDPrep (version 1.3.3)

prod_catchNAs: Find product of vector safely

Description

This low-level function is deployed as part of the semantic enrichment process. Calculates product of values in numeric vector (ignoring NAs). If all values in numeric vector are NA, returns NA (rather than Inf),

Usage

prod_catchNAs(x)

Value

product of x

Arguments

x

numeric vector