Equivalent to which(is.na())
- returns integer locations of missing values.
which_na(x)
x | a dataframe |
---|
integer locations of missing values.
which_na(airquality)#> [1] 5 10 25 26 27 32 33 34 35 36 37 39 42 43 45 46 52 53 54 #> [20] 55 56 57 58 59 60 61 65 72 75 83 84 102 103 107 115 119 150 158 #> [39] 159 164 180 249 250 251