Abschnitt 1. Kapitel 18
single
Challenge: Avoid Factor Pitfalls
Swipe um das Menü anzuzeigen
Aufgabe
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.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 18
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen