Concepts in R Flashcards

1
Q

data frame

A

2D with columns and rows

columns can be different data types

data.frame()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

factors

A

used for categorical variables

factor(c(“Male”, “female”, “male”))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

functions

A

designed to carry out a task and can be called from later in the code to run the task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

lists

A

can contain different data types (vectors, matrices, data frames)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

loops

A

repeat a block of code multiple times

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

matrices

A

2D and can store values in rows/columns

data has to be same data type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

packages

A

R functions, data, and code all together

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

vector

A

ordered collection of values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly