Question textWhich package is used to manipulate your data, such as adding columns or computing summaries? Answer 1 Question 3[select: , fpp3, tidyr, dplyr, lubridate, ggplot2, fable] Which function would you use to: compute a new column for your dataset? Answer 2 Question 3[select: , select, mutate, filter, arrange, summarise] reduce multiple values down to a single summary? Answer 3 Question 3[select: , select, mutate, filter, arrange, summarise] pick variables based on their names? Answer 4 Question 3[select: , select, mutate, filter, arrange, summarise] pick observations based on their values? Answer 5 Question 3[select: , select, mutate, filter, arrange, summarise] changes the ordering of the rows? Answer 6 Question 3[select: , select, mutate, filter, arrange, summarise] The ChickWeight dataset provides the weight chicks on 4 different diets as they age. The weight column is the chick’s body weight in grams, Time is their age in days, Chick is an identifier of each chick, and Diet is the experimental diet given to that chick. as_tibble(ChickWeight) ## # A tibble: 578 x 4 ## weight Time Chick Diet ## <dbl> <dbl> <ord> <fct> ## 1 42 0 1 1 ## 2 51 2 1 1 ## 3 59 4 1 1 ## 4 64 6 1 1 ## 5 76 8 1 1 ## 6 93 10 1 1 ## 7 106 12 1 1 ## 8 125 14 1 1 ## 9 149 16 1 1 ## 10 171 18 1 1 ## # i 568 more rows Complete the code to compute the weight of each chick at 21 days old: FinalChickWeight <- as_tibble(ChickWeight) |> Answer 7 Question 3[select: , select, mutate, filter, arrange, summarise, group_by](Answer 8 Question 3[input] == Answer 9 Question 3[input]) ## # A tibble: 45 x 4 ## weight Time Chick Diet ## <dbl> <dbl> <ord> <fct> ## 1 205 21 1 1 ## 2 215 21 2 1 ## 3 202 21 3 1 ## 4 157 21 4 1 ## 5 223 21 5 1 ## 6 157 21 6 1 ## 7 305 21 7 1 ## 8 98 21 9 1 ## 9 124 21 10 1 ## 10 175 21 11 1 ## # i 35 more rows Complete the code to compute the average weight of 21 day old chicks for each diet type: FinalChickWeight |> Answer 10 Question 3[select: , select, mutate, filter, arrange, summarise, group_by](Answer 11 Question 3[input]) |> Answer 12 Question 3[select: , select, mutate, filter, arrange, summarise, group_by](Answer 13 Question 3[input](Answer 14 Question 3[input])) ## # A tibble: 4 x 2 ## Diet `mean(weight)` ## <fct> <dbl> ## 1 1 178. ## 2 2 215. ## 3 3 270. ## 4 4 239.Check Question 3多项填空题
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
类似问题
This function in the library of Pandas allows you to manipulate data and create new variables (please choose all the correct answers, one or more):
Question at position 17 ________ is a set of commands used to update and query a database.DDL DML DPL DCL
Please create the following data frame: library(tidyverse)student <- tibble( sid = c(66666,66666,66666,66666,66666,66666,22222,22222,22222,22222,22222, 11111,11111,11111,11111,11111,44444,44444,44444,44444,44444, 44444, 55555,55555,55555,55555,55555,55555, 33333,33333,33333,33333,33333,33333, 77777), course = c("COMM101", "COMM102", "COMM103", "COMM201", "COMM204","COMM205", "COMM101", "COMM102", "COMM103", "COMM201","COMM204", "COMM101", "COMM102", "COMM103", "COMM201", "COMM205", "COMM101", "COMM102", "COMM103", "COMM201","COMM204", "COMM205", "COMM101", "COMM102", "COMM103","COMM201", "COMM204", "COMM205", "COMM101", "COMM102", "COMM103", "COMM201", "COMM204","COMM205", "COMM205"), year = c(2016, 2016, 2016, 2017, 2017, 2017, 2016, 2016, 2017, 2017,2017,2016, 2016, 2016, 2017, 2017, 2016, 2016, 2016, 2016, 2017, 2017,2016, 2016, 2016, 2016, 2017, 2017,2016, 2016, 2016, 2017, 2017, 2017, 2017), grade = c(85, 88, 72, 67, 80, 90, 77, 77, 77, 77, 77, 78, 82, 82, 80, 90, 80, 80, 80, 85, 85, 85, 79, 80, 81, 82, 83, 84, 90, 88, 95, 80, 80, 80, 99)) You wanted to find out how many unique students have taken courses in 2016. student %>% filter(year == 2016) %>% XXXX(sid) %>% summarise(XXXX(sid)) The result of your code should look something like this: # A tibble: 1 × 1 XXXXXXXXXX <int> 1 6 Please complete the code below. student %>% filter(year == 2016) %>% [Fill in the blank] (sid) %>% summarise([Fill in the blank] (sid))
Question at position 51 A database is maintained and queried using the data mapping language (DML).TrueFalse
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!