Spring Deals - hours only!Up to 70% off on all courses and bundles.-Close
30. Exercise 5


Perfect! Notice how the renovation_status column is a character vector.


Convert the renovation_status column to a factor. Use the following order for levels: "new", "renovated", "old".

Stuck? Here's a hint!

A quick reminder for you. Recall that in order to set levels in a certain order for a factor, you have to use the levels argument:

houses$renovation_status <- factor(..., levels = c(...)