Functions Flashcards

1
Q

Removes package libraries?

A

detach()

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

Outputs first 6 lines from dataset?

A

iris()

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

Summary of statistics?

A

summary()

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

Scatterplot matrix for data?

A

plot()

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

Convert to a table?

A

table()

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

Strings in more than one line?

A

paste(“”)

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

Adds one or more straight lines through the current plot (regression)?

A

abline()

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

Return subset of vectors, matrices, or data frames which meet conditions?

A

subset(data, condition)

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

Select random number from an interval?

A

runif(n, x_min, x_max)

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

Plot multiple curves in one plot?

A

matplot(x, y)

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

gets two vectors as the columns of a newly created matrix?

A

cbind(x, y)

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