Remove columns from dataframe where ALL values are NA October 20, 2022 by Tarik Try this: df <- df[,colSums(is.na(df))<nrow(df)]