An analyst writes the following code to study average star ratings over time: pet_supplies |>     group_by(review_date) |>     summarise(avg_rating = mean(star_rating),               n_reviews = n()) |>     ggplot(aes(x = review_date, y = n_reviews)) +     geom_point() What is the main problem with this code?单项选择题

A

It should group by product_id instead of review_date

B

It should use filter() before summarise()

C

It plots the number of reviews by date, not the average star rating by date

D

It should use geom_bar() instead of geom_point()

登录即可查看完整答案

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

类似问题

更多留学生实用工具

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