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?

Was it helpful?

Solution

which(is.na(my.df$col.I.care.about))
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top