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 2 out of 5 pages
Exam (elaborations)

ST 308 QUIZ -2 REVIEW QUESTIONS & VERIFIED ANSWERS

Document preview thumbnail
Preview 2 out of 5 pages

ST 308 QUIZ -2 REVIEW QUESTIONS & VERIFIED ANSWERS

Content preview

ST 308 QUIZ #2 REVIEW QUESTIONS & VERIFIED
ANSWERS


R Markdown - Answers - A language that uses plain text that gets interpreted by
software (such as a web browser) in order to render formatted text and other output.

3 types of content in R Markdown - Answers - YAML Header
Chunks of R code
Actual text

# (in R Markdown) - Answers - First level header

## (in R Markdown) - Answers - Second level header

Knit - Answers - Produce an R markdown output; Could be an HTML, PDF, or
presentation

echo = TRUE/False - Answers - Hides or shows the code

eval = TRUE/FALSE - Answers - Chooses if the code is evaluated or not

Include = TRUE/FALSE - Answers - Have the code evaluate, not show, and show no
output

Message or Warning = TRUE/FALSE - Answers - Turn on/off displaying messages or
warnings

In-line code - Answers - Snippets of code can be included in the text of an R Markdown
document

How to add a table of contents to an R Markdown document? - Answers - add toc: true
to the YAML header

TRUE or FALSE: When using R Markdown, an object created in a code chunk can be
used in subsequent (later) code chunks. - Answers - True

What is the YAML header for? - Answers - Meta-data about your document

TRUE or FALSE: Global chunk options set the default code chunk settings, but local
options (options on that particular chunk) override global ones. - Answers - TRUE

What package needs to be installed to create a PDF? - Answers - tinytex

, What function must be run to create a PDF in R Markdown? - Answers - install_tinytex(
)

Tidyverse - Answers - The tidyverse is a very well thought-out collection of R packages
for data manipulation, exploratory data analysis, and visualization that share a common
design philosophy.

dplyr - Answers - a package which provides a set of tools for efficiently manipulating
datasets in R. It forms a key part of the tidyverse suite of packages.

as_tibble() - Answers - Convert data frame to one with better printing and no
simplification

filter( ) - Answers - Subset rows

Arrange( ) - Answers - reorder rows

Select ( ) - Answers - subset columns

Rename ( ) - Answers - rename columns

Mutate ( ) - Answers - Add newly created column

group_by() - Answers - group rows by a variable or variables

logical statement - Answers - comparison that resolves as TRUE or FALSE

What is used to show equality in a logical statement? - Answers - ==

is functions - Answers - used to check the type of R object you have

Compound logical operators - Answers - & and |

& - Answers - compound logical operator that means "and"

| - Answers - compound logical operator that means "or"

%in% - Answers - use: x %in% y (y might be a vector) selects all rows where x is a
value found in y

Piping/Chaining - Answers - Using %>% to make using multiple functions in a code
more readable

advantages of using the tidyverse packages over base R functions - Answers - - There
are a lot of examples to reference due to the large community of users
- They have similar syntax that works well together

Document information

Uploaded on
June 5, 2026
Number of pages
5
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.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