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?
A 62.9 kg lady is standing on a weighing scale in an elevator as shown in the diagram below. Assume gravitational acceleration = 15 ms-2 Given that the elevator is accelerating upwards at 3.7 ms-2 , determine the magnitude of the normal force on the lady.
An object is fired from ground level at an angle of 31.9 degrees to the horizontal. Taking acceleration due to gravity = 7.65 ms-2 If the initial speed is 5.6 ms-1, how far from the starting point will it hit the ground? Assume air resistance is negligible.
Which of the following equations of motion would be used to calculate the displacement given the initial and final velocities as well as the acceleration?
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!