Is there any function to indicate the location of missing values in R?
Asked
Active
Viewed 597 times
-4
-
1You can use a simple filter, like this: `df[is.na(df$yourcolumn),]` – Earl Mascetti Mar 23 '20 at 13:49
2 Answers
-1
Yes - use the is.na() function. There are some examples in the R documentation, but basically it returns a boolean value.
Dharman
- 26,923
- 21
- 73
- 125
chemdork123
- 10,461
- 1
- 14
- 29