Matrices Flashcards Preview

R > Matrices > Flashcards

Flashcards in Matrices Deck (9)
Loading flashcards...
1

t(x)

transpose

2

diag(x)

diagonal

3

%*%

matrix multiplication

4

solve(a,b)

solves a %*% x = b for x

5

solve(a)

matrix inverse of a

6

rowsum(x)

sum of rows for a matrix-like object; rowSums(x) is a faster
version

7

colsum(x), colSums(x)

sum of columns for a matrix-like object; colSums(x) is a faster
version

8

rowMeans(x)

fast version of row means

9

colMeans(x)

fast version of col means