8 Flashcards

1
Q

Sums of the columns (sum top down of each column)?

A

colSums(matrix)

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

Sum of rows in a matrix (left right of each row)?

A

rowSums(matrix)

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

Means of rows and columns of matrix?

A

rowMeans(matrix)
colMeans(matrix)

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

Sample standard deviation?

A

sd(x)

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

sample variance?

A

var(x)

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

Sample covariance?

A

cov(x, y)

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

Variance covariance of dataframe?

A

cov(dataframe)

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

Correlation between two vectors?

A

cor(x, y)

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

Median?

A

median(x)

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

five number summary?

A

fivenum(x)

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

Quantile?

A

quantile(x, probs)

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

Structure?

A

str(x)

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

Find dimensions?

A

dim(matrix), will output rows, columns

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

Apply a function to either rows or columns of a matrix?

A

apply(matrix, margins, function, parameters), margins = 1 (rows), 2 (columns)

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