I'm using R and stuck at the following problem.
I have a data called data. It has 48 columns. id, title_1, title_2, ..., title_47. id stands for personal id and the other 47 columns include the values either H or L or P or N or "" . Here I mean "" as empty.
My goal is to eliminate the columns that have all empty values. Definitely all the values of id are filled with number. So I think I should make a for sentence for title_1 to title_47 to check whether some of them have all empty values.