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).
Solução
Obrigado pelo seu feedback!
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Incrível!
Completion taxa melhorada para 5.56
Challenge: Grouped Means with tapply
Deslize para mostrar o menu
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).
Solução
Obrigado pelo seu feedback!
single