Challenge: Work with Factors and Characters
Aufgabe
Swipe to start coding
Convert a character vector of product categories to a factor. Using factors for categorical data can improve efficiency and provide better support for statistical analysis.
- Return a factor variable that represents the categories in the input vector.
- Ensure the result contains the unique levels present in the input.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 16
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Großartig!
Completion Rate verbessert auf 5.56
Challenge: Work with Factors and Characters
Swipe um das Menü anzuzeigen
Aufgabe
Swipe to start coding
Convert a character vector of product categories to a factor. Using factors for categorical data can improve efficiency and provide better support for statistical analysis.
- Return a factor variable that represents the categories in the input vector.
- Ensure the result contains the unique levels present in the input.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 16
single