Question

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

Était-ce utile?

La solution

which(is.na(my.df$col.I.care.about))
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top