Below are the different methods for renaming columns in R-studio tool. Each method uses different libraries. You can follow any one method as per convenience..

DEMO:

Below are the old and new column details:

 

METHOD -1:( using Library : dplyr )

  • To rename single column:

  • To rename Multiple column:

Method -2 ( Using Library : data.table )

  • To rename singel column:

  • To rename Multiple column: