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?
Question at position 20 One disadvantage of the functional structure is that:career paths and professional development are limiteddual reporting relationships blur lines of authoritythe CEO cannot coordinate and control the efforts of functional-level employeescommunication and coordination are difficult among organizational functions
Question at position 18 Establishing a wholly-owned subsidiary provides the quickest access to a new market.TrueFalse
Question at position 17 Leading companies should recognize that a firm based in a country with a national competitive advantage is not guaranteed ............................ as it implements its chosen international business-level strategy.dominanceplansuccessNone of the Above
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!