r type of all columns

# Assuming 'df' is your dataframe
column_types <- sapply(df, class)
column_types