题目
题目

COMM_V 205 101 102 103 2025W1 R Review Quiz

多重下拉选择题

df_c<- student %>%   group_by(sid, year) %>%   summarise(min_grade = min(grade), ave_min_grade = mean(min_grade)) df_d<- student %>%   group_by(sid, year) %>%   summarise(min_grade = min(grade)) %>%   summarise(ave_min_grade = mean(min_grade))   Number of rows in df_c is different from that in df_d. There are 4 columns in df_c while there are 2 columns in df_d.  

查看解析

查看解析

标准答案
Please login to view
思路分析
Let’s walk through what the two pipelines are doing and what the resulting shapes look like step by step. First, inspect df_c: df_c <- student %>% group_by(sid, year) %>% summarise(min_grade = min(grade), ave_min_grade = mean(min_grade)). After grouping by sid and year, summarise creates one row per (sid, year) group and keeps the grouping keys in the output. The columns present are the grouping variables sid an......Login to view full explanation

登录即可查看完整答案

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

更多留学生实用工具

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