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)

ST308 QUESTIONS & VERIFIED ANSWERS

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

ST308 QUESTIONS & VERIFIED ANSWERS

Institution
Course

Content preview

ST308 QUESTIONS & VERIFIED ANSWERS




There is a built-in R object called (note that R is case-sensitive):
letters

What is the class of the letters object?
Simply give the name of the class as your answer (case sensitive, no quotes). For
instance, if the answer is the "plot", simply answer:
plot - Answers - Character

How many rows and columns does the built-in iris dataset have? Hint: Use one of the
functions that help you understand your R objects.
- 1 row, 750 columns.
- 750 rows, 1 column
- 150 rows, 5 columns
- 150 columns, 5 rows - Answers - 150 rows, 5 columns

Why does print(cars) produce a different type of output than print(exp)?

- R is determining how to use print() based on the type of object used as the input
- R is running into an error
- R doesn't know how to print every type of object
- the car object was loaded from an external file - Answers - R is determining how to use
print() based on the type of object used as the input

If you look at the help file for a function and see an argument in the function definition
with an = sign and a value next to it, for example, runif(n, min = 0, max = 1), what does
the value to the right of the equal sign represent?

- The value of the argument any time the function is called.
- If the user doesn't specify a value for that argument, this is the default value to use.
-An example of what you might put in as the input for that argument but the value isn't
actually used. - Answers - If the user doesn't specify a value for that argument, this is
the default value to use.

Suppose you ran the code below:
final_answer <- log(2.1*4.6/1.9) - 2*exp(4)final_answer
TRUE or FALSE: Each time you type final_answer into the console, R has to execute
the log and exp functions. - Answers - False , R stores the output of the computation

What is the syntax used to store the output of some code in an R object? - Answers - <-

Written for

Institution

Document information

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

Subjects

$12.99
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

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