We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Firefox.

Recipe

Select columns from a data frame

To select only a specific set of interesting data frame columns dplyr offers the select() function to extract columns by names, indices and ranges. You can even rename extracted columns with select().

  • Learn to use the select() function
  • Select columns from a data frame by name or index
  • Rename columns from a data frame