سؤال

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

هل كانت مفيدة؟

المحلول

which(is.na(my.df$col.I.care.about))
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top