Functions Flashcards
1
Q
Removes package libraries?
A
detach()
2
Q
Outputs first 6 lines from dataset?
A
iris()
3
Q
Summary of statistics?
A
summary()
4
Q
Scatterplot matrix for data?
A
plot()
5
Q
Convert to a table?
A
table()
6
Q
Strings in more than one line?
A
paste(“”)
7
Q
Adds one or more straight lines through the current plot (regression)?
A
abline()
8
Q
Return subset of vectors, matrices, or data frames which meet conditions?
A
subset(data, condition)
9
Q
Select random number from an interval?
A
runif(n, x_min, x_max)
10
Q
A
11
Q
Plot multiple curves in one plot?
A
matplot(x, y)
12
Q
gets two vectors as the columns of a newly created matrix?
A
cbind(x, y)
13
Q
A