Math Flashcards

1
Q

sin,cos,tan,asin,acos,atan,atan2,log,log10,exp max(x) min(x) sum(x) mean(x) median(x) rank(x) var(x) sd(x) cor(x) var(x, y) cor(x, y)

A

simple math functions

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

range(x)

A

id. then c(min(x), max(x))

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

diff(x)

A

lagged and iterated differences of vector x

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

prod(x)

A

product of the elements of x

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

quantile(x,probs=)

A

sample quantiles corresponding to the given prob-

abilities (defaults to 0,.25,.5,.75,1)

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

weighted.mean(x, w)

A

mean of x with weights w

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

round(x, n)

A

round(x, n)

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

log(x, base)

A

computes the logarithm of x with base base

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

scale(x)

A

if x is a matrix, centers and reduces the data; to center only use
the option center=FALSE, to reduce only scale=FALSE (by default
center=TRUE, scale=TRUE)

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

pmin(x,y,…)

A

a vector which ith element is the minimum of x[i],

y[i], . . .

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

pmax(x,y,…)

A

d. for the maximum

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

cumsum(x)

A

a vector which ith element is the sum from x[1] to x[i]

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

cumprod(x)

A

d. for the product

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

cummin(x)

A

id. for the minimum

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

cummax(x)

A

d. for the maximum

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

union(x,y), intersect(x,y), setdiff(x,y), setequal(x,y),

is.element(el,set)

A

“set” functions

17
Q

Mod(x)

A

modulus; abs(x) is the same

18
Q
A