t(x)
transpose
diag(x)
diagonal
%*%
matrix multiplication
solve(a,b)
solves a %*% x = b for x
solve(a)
matrix inverse of a
rowsum(x)
sum of rows for a matrix-like object; rowSums(x) is a faster
version
colsum(x), colSums(x)
sum of columns for a matrix-like object; colSums(x) is a faster
version
rowMeans(x)
fast version of row means
colMeans(x)
fast version of col means