Geekuna Matata
Geekuna Matata

Reputation: 1439

How can I find the index of all NA in a dataframe column?

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

Upvotes: 8

Views: 4656

Answers (1)

BrodieG
BrodieG

Reputation: 52637

which(is.na(my.df$col.I.care.about))

Upvotes: 15

Related Questions