-4

Is there any function to indicate the location of missing values in R?

Debutant
  • 335
  • 2
  • 13

2 Answers2

1

If df is the name of your dataframe them which(is.na(df))

XXavier
  • 1,011
  • 1
  • 8
  • 14
-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