Skip to content
Prev 389210 / 398506 Next

unable to remove NAs from a data frame

Hi

You should consult either complete.cases function or to remove only rows in
which are only NAs you could use something like (untested)

df[!(colSums(is.na(df))==8),]

Cheers
Petr