mean_catchNAs {eHDPrep}R Documentation

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)

Arguments

x

numeric vector

Value

mean of x


[Package eHDPrep version 1.3.3 Index]