Session Ready
Exercise

In-place name changes

In this exercise, you'll practice using setnames() to efficiently change a data.table's column names.

diagnosticDT has been read in for you using read_feather() from the feather package and as.data.table(). As you work through the exercises in this code, use head(diagnosticDT) before and after each step to see what changes.

Instructions 1/3
undefined XP
  • 1
  • 2
  • 3
  • Change the name of the "timestamp" column to "obs_time".