R: How to retrieve a column name of a data frame

r create dataframe with column names
data.frame r
r get column name by index
r select multiple columns by name
r data.table column names
add column to dataframe r
r access dataframe by column name
r create dataframe column name from variable