Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 1 out of 2 pages
Exam (elaborations)

ST 308 QUIZ QUESTIONS & VERIFIED ANSWERS

Document preview thumbnail
Preview 1 out of 2 pages

ST 308 QUIZ QUESTIONS & VERIFIED ANSWERS

Content preview

ST 308 QUIZ QUESTIONS & VERIFIED ANSWERS


What are the two most common row manipulations we do to a data set - Answers - 1.
subset rows
2. reorder rows

you can reorder a dataset by more than variable using the arrange() function from dplyr
- Answers - true

what is the purpose of using the as_tibble() function from the dplyr package - Answers -
1.to convert it an existing data frame into a tibble

what is meant by a logical statement - Answers - A line of code that will return
TRUE/FALSE values

what is the standard "equal to" comparison operator in R - Answers - ==

what family of functions can be used to check the type of R object you have - Answers -
is.

what function in dplyr will subset rows of a tibble - Answers - filter()

what are the two main column manipulations - Answers - 1.subsetting variable
2.renaming columns

Library(dplyr)
iris%>%select(ends_with("Length") - Answers - Two columns of the iris
dataframe:Sepal.Length and Petal.Length

what is the most common type of object used as the first argument to almost every
important function in the tidyverse. - Answers - tibble

how would you rewrite the code with chaining
arrange(filter(select(my_tibble, Var1, Var4) Var 1>20),Var4) - Answers -
my_tibble%>%select(Var1, Var4)%>%filter(Var 1>20)%>%arrange(Var4)

what is the purpose of the mutate() funtion from dplyr - Answers - to add newly created
variables to an already existing tibble

what function allows us to instruct R to create summaries of our data by subgroups -
Answers - group_by

what is the correct output for the code below
if_else(30>20,1 ,10) - Answers - 1

Document information

Uploaded on
June 5, 2026
Number of pages
2
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$9.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
GEEKA
3.8
(361)
Sold
2137
Followers
1448
Items
58651
Last sold
6 days ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions