how take the name of a column in r code example Example: r get name of column in data frame colnames(<dataframe>) #or names(<dataframe>)