Questions
ETC3550 - ETC5550 - S1 2025 Check your understanding (week 1)
Multiple fill-in-the-blank
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
View Explanation
Verified Answer
Please login to view
Step-by-Step Analysis
We start by outlining what each piece in this multi-part prompt is asking and then evaluate each option in turn.
Option 1: 'fpp3' as the package used to manipulate data such as adding columns or computing summaries.
- This is incorrect because fpp3 is a package for forecasting workflows in R, built around time series forecasting, not for general data manipulation like adding columns or computing summaries. The core verbs for data manipulation are typically dplyr-like verbs, while fpp3 provides modeling and forecasting tools.
Option 2: 'tidyr' as the package used to manipulate data such as adding columns or computing summaries.
- Tidyr is focused on transforming the shape of data (tidying), such as widening, gathering, or separating/placing columns. It does not primarily provide the general-purpose verbs for adding columns or computing summaries across rows; those are usually provided by dplyr. So while tidyr complements data manipulation, it’s not the primary package for these basic operations.
Option 3: 'dplyr' as the package used to manipulate data such as adding columns or com......Login to view full explanationLog in for full answers
We've collected over 50,000 authentic exam questions and detailed explanations from around the globe. Log in now and get instant access to the answers!
Similar Questions
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
More Practical Tools for Students Powered by AI Study Helper
Making Your Study Simpler
Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!