Frage

I have a dataframe and in a particular column I want to find the index of all NA values. How can I do it?

War es hilfreich?

Lösung

which(is.na(my.df$col.I.care.about))
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top