Challenge: Avoid Factor Pitfalls
Завдання
Swipe to start coding
Convert a factor of survey ratings to numeric values and ensure the levels are ordered from lowest to highest satisfaction.
- Create a new factor from
ratings_factorwith levels ordered as "Poor", "Fair", "Good", "Excellent". - Convert the ordered factor to numeric values, where "Poor" is 1 and "Excellent" is 4.
- Return the resulting numeric vector.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 18
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Чудово!
Completion показник покращився до 5.56
Challenge: Avoid Factor Pitfalls
Свайпніть щоб показати меню
Завдання
Swipe to start coding
Convert a factor of survey ratings to numeric values and ensure the levels are ordered from lowest to highest satisfaction.
- Create a new factor from
ratings_factorwith levels ordered as "Poor", "Fair", "Good", "Excellent". - Convert the ordered factor to numeric values, where "Poor" is 1 and "Excellent" is 4.
- Return the resulting numeric vector.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 18
single