Challenge: Grades Summary
Oppgave
Swipe to start coding
You have a factor vector, grades_f, which assigns each numeric grade into one of five categories ('F', 'D', 'C', 'B', 'A'). Your goal is to:
- Use the
summary()function ongrades_fto display the number of occurrences of each grade. - Compute the relative frequency of each grade by dividing the counts from the previous step by the total number of grades. To find the total, call the
length()function ongrades_f.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 26
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
Fantastisk!
Completion rate forbedret til 2.27
Challenge: Grades Summary
Sveip for å vise menyen
Oppgave
Swipe to start coding
You have a factor vector, grades_f, which assigns each numeric grade into one of five categories ('F', 'D', 'C', 'B', 'A'). Your goal is to:
- Use the
summary()function ongrades_fto display the number of occurrences of each grade. - Compute the relative frequency of each grade by dividing the counts from the previous step by the total number of grades. To find the total, call the
length()function ongrades_f.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 26
single