Learn R Programming

eHDPrep (version 1.3.3)

mean_catchNAs: Find mean of vector safely

Description

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

Usage

mean_catchNAs(x)

Value

mean of x

Arguments

x

numeric vector