Summary
30. Exercise 5

Instruction

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

Exercise

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(...)