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).
Solución
¡Gracias por tus comentarios!
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Genial!
Completion tasa mejorada a 5.56
Challenge: Grouped Means with tapply
Desliza para mostrar el menú
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).
Solución
¡Gracias por tus comentarios!
single