to_na: Set an arbitrary number of elements in a vector to NA

Description Usage Arguments Value Examples

View source: R/missing.R

Description

Will additionally set all NaN elements to NA.

Usage

1
to_na(x, ...)

Arguments

x

A vector with elements that should set to NA

...

The elements that should be set to NA

Value

Vector with specified elements set to NA

Examples

1
to_na(c(1, NaN, 2, 3), 2, NaN)

alexpghayes/hayeslib documentation built on May 5, 2019, 4:47 p.m.