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

bookChallenge: Grades Summary

Uppgift

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 allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 26
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

bookChallenge: Grades Summary

Svep för att visa menyn

Uppgift

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 desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 26
single

single

some-alt