-4

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

Debutant
  • 355
  • 5
  • 17

2 Answers2

1

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

XXavier
  • 1,206
  • 1
  • 10
  • 14
-1

Yes - use the is.na() function. There are some examples in the R documentation, but basically it returns a boolean value.

Dharman
  • 30,962
  • 25
  • 85
  • 135
chemdork123
  • 12,369
  • 2
  • 16
  • 32