Concepts in R Flashcards
1
Q
data frame
A
2D with columns and rows
columns can be different data types
data.frame()
2
Q
factors
A
used for categorical variables
factor(c(“Male”, “female”, “male”))
3
Q
functions
A
designed to carry out a task and can be called from later in the code to run the task
4
Q
lists
A
can contain different data types (vectors, matrices, data frames)
5
Q
loops
A
repeat a block of code multiple times
6
Q
matrices
A
2D and can store values in rows/columns
data has to be same data type
7
Q
packages
A
R functions, data, and code all together
8
Q
vector
A
ordered collection of values