I have a list made up of several data frames. I would like to remove all of the columns with NAs in each data frame. Note the columns to be removed are not the same in each
Try this
lapply(WW1_Data, function(x) x[, !is.na(x)]) $Alnön Site_Name X1996 X2000 X2010 1 Alnön 0.3076923 0.2608696 0.08333333 $Ammarnäs Site_Name X1996 X2011 2 Ammarnäs 0.75 0.8 ...