Section 1. Chapitre 4
single
Challenge: Factors
Glissez pour afficher le menu
Tâche
Glissez pour commencer à coder
Practice converting character vectors to factors, reordering their levels, and summarizing the frequency of each category. This exercise reinforces your understanding of categorical data handling in R.
- Convert
char_vecto a factor. - Reorder the factor levels according to
new_order. - Summarize the frequency of each category and return the summary.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 4
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion