Skip to content
Prev 276377 / 398506 Next

How to delete only those rows in a dataframe in which all records are missing

Perhaps something like this will work.

df[!(rowSums(is.na(df))==NCOL(df)),]

Michael

On Fri, Nov 4, 2011 at 9:27 AM, Jose Iparraguirre
<Jose.Iparraguirre at ageuk.org.uk> wrote: