Drop links or images here to add them to the editor.

1.4 Factors (Extra)

Use the levels() function to look at the levels of the variable TVHrsDay within the dataset NH_18_69.
You obtain a vector with the factor levels.
Use square brackets [ ] to select the 7th category and rename it to “>_4_hr”.