nainf.omit: Omit NA, NaN, Inf and -Inf from a vector or dataframe columns

View source: R/util_funs.R

nainf.omitR Documentation

Omit NA, NaN, Inf and -Inf from a vector or dataframe columns

Description

For using with, for example, range to get axis range values in 'inspect'. Previously, na.omit was used, then discovered data files with Inf values. This causes axis limit range to be Inf, and xlim/ylim don't accept infinite axes!

Usage

nainf.omit(x)

Details

If x is dataframe, it returns a vector of all columns appended together. Only useful for getting range in this case, don't use for anything else.

Value

original vector without NA or Inf values or df all cols appended without these


januarharianto/respR documentation built on April 20, 2024, 4:34 p.m.