Sektion 1. Kapitel 4
single
Challenge: Factors
Stryg for at vise menuen
Opgave
Stryg for at begynde at kode
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 4
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat