Exercise

Shifting positions with relocate()

The relocate() function is helpful when you want to keep all of the columns in your data but move some of them around. select() can do this too, but it works better when a subset of columns is needed instead. Try out relocate()!

Instructions 1/2

undefined XP
    1
    2
  • Move the consumer_price_index column to appear after usd_conversion_rate and assign to relocated_cpi.
  • Then, take a glimpse() at relocated_cpi.