Sektion 1. Kapitel 12
single
Challenge: Grades Summary
Stryg for at vise menuen
Opgave
Stryg for at begynde at kode
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
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 12
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