セクション 1. 章 26
single
Challenge: Grades Summary
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
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.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 26
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください