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 Nov. 6, 2018, 10:49 p.m.