NA

R/too_far.R

to_na.Rd

Given a vector i indexing the elements of x, sets the selected elements of x to NA.

i

x

to_na(x, i)

vector of values

vector of values used to subset x

Returns x with possibly some elements set to NA