I know that I can use sapply to find out the class of data columns like this:
sapply(data, class)
Code above similar to: How do I get the classes of all columns in a data frame?
However, how would determine and store a vector of column names, fac that are of class factor?