Challenge: Work with Factors and Characters
Tarefa
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.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 4
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 5.56
Challenge: Work with Factors and Characters
Deslize para mostrar o menu
Tarefa
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.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 4
single