get_data_classes function

Extract data classes from a data frame or matrix