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”.
levels()
TVHrsDay
NH_18_69