6 Flashcards

1
Q

e^x?

A

exp(x)

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

na.rm = TRUE?

A

Ignore missing values in a vector

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

Find max and min one by one between two vectors (pairwise)?

A

pmax(x, y)

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

Index of largest or smallest value?

A

which.max(x)

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

Cumulative sum?

A

cumsum(x)

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

Product of each element in a vector?

A

prod(x)

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

Cumulative product?

A

cumprod(x)

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

Sorting R?

A

sort(x, decreasing = TRUE/FALSE)

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

The element of a vector that corresponds with sorting the vector from smallest to largest?

A

rank(x)

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

Change a vector in order?

A

order(x)

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