Columns

There are four important verbs that affect the columns without changing the rows:

  • mutate() creates new columns that are derived from the existing columns
  • select() changes which columns are present
  • rename() changes the names of the columns
  • relocate() changes the positions of the columns.