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
Exam (elaborations)

ST 308 QUIZ 4-6 QUESTIONS & VERIFIED ANSWERS

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
05-06-2026
Written in
2025/2026

ST 308 QUIZ 4-6 QUESTIONS & VERIFIED ANSWERS

Institution
Course

Content preview

ST 308 QUIZ 4-6 QUESTIONS & VERIFIED ANSWERS


What package has functions that can read in SAS data sets (.sas7bdat files)?
Haven


How can you return more than one element from a vector?
Provide an indexing vector with the [] function. For instance, vec[c(3, 5, 10)]


R and RStudio are the same software.
False


Choose the true statement below about lists and vectors.
both are one-dimensional objects


What function creates a data frame?
data.frame()


What is the purpose of the R console?
code is submitted to be evaluated.


Check all of the following that are true about the readxl package and the read_excel()
function.
A specific Excel sheet can be chosen to be read in.
Both .xls and .xlsx files can be read.


What index is the first element of an atomic vector in R given?
1


What function can help you determine your working directory?
getwd()


When we use the term 'base R', we refer to what?
Packages that come with R that automatically load when you open R

, How does R do basic mathematical operations on a vector (or numeric data frame)?
That is, if I have a numeric vector called vec and run the code vec*10, how does R
execute the multiplication?
R applies the operation element-wise.


What does the following syntax for calling a function do?
stats::filter()
Explicitly call the filter function from the stats package.


Suppose we create a list called myList as follows:
myList <- list('first' = iris, 'second'=1:3)
What is one way to access the second element ofmyList and have it be returned as a
vector?
mylist[[2]]


Which of the following correctly sets global chunk options in markdown?
Assume library(knitr) has been run.
opts_chunk$set(echo = FALSE, eval = TRUE, warning = FALSE)


Which statements show how to order the iris dataset decreasing on the Sepal Width
variable? Note: Make sure to run library(dplyr) to be able to use the %>% operator.
iris %>% arrange(desc(Sepal.Width))
iris %>% arrange(-Sepal.Width)


True or False: Local chunk options override global chunk options.
True


What will the following code return?
library(dplyr)
iris %>% select(ends_with("Length"))
Two columns of the iris data frame that end with "Length"


What is the YAML header for?
To define meta-data about your document


In R Markdown, a table of contents can be created for your document by adding the
appropriate option in the YAML header. What symbol(s) or character(s) from the plain

Written for

Institution

Document information

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

Subjects

$13.49
Get access to the full document:

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

Get to know the seller

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 YALA UNIVERSITY
Follow You need to be logged in order to follow users or courses
Sold
2119
Member since
4 year
Number of followers
1446
Documents
55907
Last sold
2 days ago

3.8

360 reviews

5
179
4
61
3
48
2
17
1
55

Recently viewed by you

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