Grades Summary
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 3. Capitolo 6
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
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
Scorri per mostrare il menu
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Awesome!
Completion rate improved to 2.27Sezione 3. Capitolo 6
single