powered by
Which indices are Missing Values
sparse_which_na(x)
A logical vector.
A sparse vector.
This function, as with any of the other helper functions assumes that the input x is a sparse numeric vector. This is done for performance reasons, and it is thus the users responsibility to perform input checking.
x
sparse_is_na()
sparse_which_na( sparse_double(c(10, NA, 11), c(1, 50, 111), 1000) )
Run the code above in your browser using DataLab