powered by
Get data.frame names and types
getnamesandtypes(x)
character vector of column names with attribute "type" holding the class of each column
data.frame / data.table or similar
EDG
getnamesandtypes(iris)
Run the code above in your browser using DataLab