Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Grouped Means with tapply | Apply Family Functions in R
Control Flow in R
セクション 3.  4
single

single

bookChallenge: Grouped Means with tapply

メニューを表示するにはスワイプしてください

タスク

スワイプしてコーディングを開始

You are given a data frame with students' scores in three subjects and their class group. Complete the following steps:

  • Use vapply to calculate the median score for each subject (math, english, science).
  • Use tapply to compute the mean math score for each group (X and Y).

Store your results in variables named subject_medians (for the vapply result) and group_math_means (for the tapply result).

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 3.  4
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt