题目
题目

COMM_V 205 101 102 103 2025W1 R Review Quiz

多项填空题

For each student (ie. `sid`), find the average marks of the all courses taken. You are asked to have one average value for each student in the result. df2 <- student %>%   XXXX(sid) %>%   XXXX(ave_grade = mean(grade, na.rm = TRUE)) Please fill in the blanks below. df2 <- student %>%   [Fill in the blank] (sid) %>%   [Fill in the blank] (ave_grade = mean(grade, na.rm = TRUE))

查看解析

查看解析

标准答案
Please login to view
思路分析
To tackle this problem, I’ll walk through what each blank should do in the dplyr chain and how they work together. Option analysis for the first blank: - group_by: This function is used to group the data by one or more variables. Since the task is to compute an average per student, grouping by sid is the correct approach to create subsets of each student’s records before summarisi......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!