Here is how I found out the column names that are numerical and categorical.
split(names(my.data), sapply(my.data, function(x) paste(class(x), collape=" ")))$factor
split(names(my.data), sapply(my.data, function(x) paste(class(x), collape=" ")))$numeric
From the above code i got a list of 30 categorical variables and 70 numerical variables. I am trying to find out the number of missing variables in all of them.
The output I am looking for: In all the Factor variables: Variable1 has xyz NA's
In the list of numerical variables Variable1 has xyz NA's