*by cell I am talking about a coordinate like df[x, y]
I'd like to make a function which takes in a data frame and returns another data frame with the same columns, but just 1 row which contains the amount of cells for each column that were not empty.
My dataframe has 173 columns so I cannot group them by manually. Some of the cells are empty/NA (I prefer to represent empty cells with "" instead of NA)
So, for example, if I have DF
Name | Lname | City | Email
John Marbor Kalamazoo
Mary Watson Grand Rapids maryW@something.com
Leon Ortiz Lansing Leonie@something.com
Trevor Brooks
I want the output to be
Name | Lname | City | Email
4 4 3 2
Can this be accomplished with R?