I am writing a function, which needs a check on whether (and which!) column (variable) has all missing values (NA, ). The following is fr
NA
This one will generate the column names that are full of NAs:
library(purrr) df %>% keep(~all(is.na(.x))) %>% names