I have a data frame where all the variables are of character type. Many of the columns are completely empty, i.e. only the variable headers are there, but no values. Is ther
This can also be done by dplyr and select_if
dplyr
select_if
`select_if(df,function(x){any(!is.na(x))})`
or with is.null() or x=="" depending on how empty values are defined in your data.
is.null()
x==""