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道真实原题与详细解析,现在登录,立即获得答案。
类似问题
View the following FOUR lines of code. library(tidyverse) # End of line 1 data <- data.frame(x = c(rnorm(100, 25, 3) , rnorm(100, 5, 3))) # End of line 2 ggplot(data, aes(x = x)) + geom_histogram(bins = 14) + # End of line 3 labs(x = "Avg. Daily Temperature", y = "Days with that temperature") # End of line 4 In which line of code is the Normal curve plotted?
Is the following statement true or false? In the products of methylation-hydrolysis, every -OH group corresponds to the position of a glycosidic bond in the starting polysaccharide.
Which of the follwoing structures represents amylopectin?
Which of the following is true about an aldopentose?I. It is a monosaccharide.II. It contains a CHO groupIII. It is a disaccharide.IV. It is an oligosaccharide.
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!