Skip to contents

This function returns index of elements which are missing.

Usage

which_na(x)

Arguments

x

Vector to find missing elements

Value

Index of elements missing

Examples

l = c(0, 1, NA, 3, 4, 5)
which_na(l)
#> [1] 3