Seksjon 1. Kapittel 4
single
Challenge: Factors
Sveip for å vise menyen
Oppgave
Sveip for å begynne å 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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 4
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår