Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Grades Summary | Section
Practice
Projects
Quizzes & Challenges
Quizzer
Challenges
/
Essential R Programming for Absolute Beginners - 1768563985826

bookChallenge: Grades Summary

Opgave

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:

  1. Use the summary() function on grades_f to display the number of occurrences of each grade.
  2. 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 on grades_f.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 26
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

bookChallenge: Grades Summary

Stryg for at vise menuen

Opgave

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:

  1. Use the summary() function on grades_f to display the number of occurrences of each grade.
  2. 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 on grades_f.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 26
single

single

some-alt