Tidyr
Changing data format
Summary
13. Exercise 2

Instruction

Looks like we have some tidying to do!

Exercise

First, we need to separate the currency symbol from the selling price. Use the separate() function to separate the price column into price and currency. Set sep = "/".

Stuck? Here's a hint!

Type:

separate(
  cars, price,
  into = c("price", "currency"),
  sep = "/")