Learn R Programming

eHDPrep (version 1.3.3)

max_catchNAs: Find maximum of vector safely

Description

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

Usage

max_catchNAs(x)

Value

maximum value of x

Arguments

x

numeric vector