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

ST 308 I QUIZ -1 REVIEW QUESTIONS

Document preview thumbnail
Preview 2 out of 6 pages

ST 308 I QUIZ -1 REVIEW QUESTIONS

Content preview

ST 308 I QUIZ #1 REVIEW QUESTIONS


Basic use of R - Answers - reading, manipulating, and plotting data

Console (Terminal) - Answers - Where we submit our code

Scripting and Viewing Window - Answers - Where we write our code

<- - Answers - Storage Arrow for storing data/info/function in R objects

Class() - Answers - Describes the class attribute of an R object

Typeof() - Answers - determines the (R internal) type or storage mode of any object

Str() - Answers - Compactly displays the internal structure of an R object

Atomic Vector - Answers - One-dimensional object whose elements are all the same
type (homogeneous)

Data Frame - Answers - A two-dimensional object where each column is a vector; these
vectors can be of differing types (Heterogeneous)

List - Answers - one-dimensional object whose elements can be of different types

c() - Answers - Combine function -Used to combine elements into a vector

seq() - Answers - Inputs = from, to, by
Outputs = A sequence of numbers

R does what kind of math on vectors? - Answers - Element-wise meaning

: - Answers - Can be used to create a sequence.
Ex 1:20

[ ] - Answers - Return vector elements

Negative indices [ ,-1] - Answers - returns vectors without the elements mentioned

data.frame() - Answers - constructs a data frame

What symbol do we often use at the end of a data frame to return a single column
(variable)? - Answers - $

, True or False: We can use [ ] after a data frame object to subset that data frame. -
Answers - True [Rows, Columns]

list() - Answers - A generic term for a programming data structure that holds multiple
items. Function that creates a list

What is used to access multiple list elements? - Answers - [ ]

What is used to access a single list element? - Answers - [[ ]]

If list elements are named, what can be used(instead of brackets)? - Answers - $

What is the connection between list, data frames, and vectors? - Answers - A data
frame is a list of equal length vectors.

R package - Answers - a collection of R functions, data, and compiled code in a well-
defined format

Tidyverse - Answers - a collection of open source R packages that share a common
philosophy are designed to work together

Installing an R package - Answers - First time using it must be installed with:
intsall.packages() or through menu

Each session, packages must be read in with? - Answers - library() or require()

: : - Answers - Call functions without loading full library; If not specified, most recently
loaded package takes precedent.

Delimited Data - Answers - data that is stored in text format and separated by
delimiters, such as commas or tabs

Delimiter - Answers - A character that separates data entries from one another.

Function to read Comma Delimited - Answers - read.csv (utils)
read_csv (readR)

Function to read Semicolon Delimited - Answers - read.csv2() (utils)
read_csv2 (readR)

Function to Read tab delimited - Answers - read.delim() (utils)
read_tsv() (readR)

Working Directory - Answers - the folder on your computer where R is looking for files
be default

Document information

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

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