I have 3 data frames x,y and z, and I would like to create a for loop in a function to be able to get the class of each column.
Let's say I name my function ColumnClass, I need the result to be as follow when I type ColumnClass(x)
x-- The class of the column A is : integer
x-- The class of the column B is : character
and so on ... same thing if I type ColumnClass(y) or ColumnClass(z)
Do you have any idea on how I can do that?
Please keep in mind that I just started using R, so any help is welcomed.
Thank you,