Grades Summary
Oppgave
Swipe to start coding
You have already created a factor vector, grades_f
, which assigns each numeric grade into one of five categories ('F'
, 'D'
, 'C'
, 'B'
, 'A'
). Your goal is to:
- Call the
summary()
function on yourgrades_f
variable to output the number of occurrences of each factor grade. - Divide those counts by the total number of grades, computed by calling
length()
function ongrades_f
variable, to obtain the relative frequency of each grade.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 6
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
Suggested prompts:
Can you explain that in more detail?
What are the next steps I should take?
Can you give me an example?
Awesome!
Completion rate improved to 2.27
Grades Summary
Sveip for å vise menyen
Oppgave
Swipe to start coding
You have already created a factor vector, grades_f
, which assigns each numeric grade into one of five categories ('F'
, 'D'
, 'C'
, 'B'
, 'A'
). Your goal is to:
- Call the
summary()
function on yourgrades_f
variable to output the number of occurrences of each factor grade. - Divide those counts by the total number of grades, computed by calling
length()
function ongrades_f
variable, to obtain the relative frequency of each grade.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Awesome!
Completion rate improved to 2.27Seksjon 3. Kapittel 6
single