Count NAs per row in dataframe [duplicate]

You can count the NAs in each row with this command:

rowSums(is.na(dat))

where dat is the name of your data frame.

Leave a Comment