Challenge: Grouped Means with tapply
Swipe to start coding
You are given a data frame with students' scores in three subjects and their class group. Complete the following steps:
- Use
vapplyto calculate the median score for each subject (math,english,science). - Use
tapplyto compute the mean math score for each group (XandY).
Store your results in variables named subject_medians (for the vapply result) and group_math_means (for the tapply result).
Рішення
Дякуємо за ваш відгук!
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Чудово!
Completion показник покращився до 5.56
Challenge: Grouped Means with tapply
Свайпніть щоб показати меню
Swipe to start coding
You are given a data frame with students' scores in three subjects and their class group. Complete the following steps:
- Use
vapplyto calculate the median score for each subject (math,english,science). - Use
tapplyto compute the mean math score for each group (XandY).
Store your results in variables named subject_medians (for the vapply result) and group_math_means (for the tapply result).
Рішення
Дякуємо за ваш відгук!
single