Useful Tricks for Matrix Manipulation


[Up] [Top]

Documentation for package ‘matricks’ version 0.8.2

Help Pages

%+% Binary operations on matrices/vectors
%-% Binary operations on matrices/vectors
%d% Binary operations on matrices/vectors
%m% Binary operations on matrices/vectors
antidiag Matrix antidiagonals
antidiag<- Matrix antidiagonals
at Set or get matrix value at index vector
at<- Set or get matrix value at index vector
binding Bind vector, single values and matrices
col_bind Bind vector, single values and matrices
crep Repeat columns or rows
is_idx_possible Is idx possible in given matrix?
m A shortcut to create matrix defining rows
matrix_idx Get available marix indices
neighbour_idx Get all indices in neighbourhood
neighbour_idx_matrix Create matrix of lists, where each one contains list of neighbour field coordinates
operators Binary operations on matrices/vectors
plot.matrix Plot a matrix
plot_matrix Plot a matrix
rboolm Create matrix of random choosen boolean values
repetitions Repeat columns or rows
row_bind Bind vector, single values and matrices
rrep Repeat columns or rows
runifm Create matrix of random values drawn from uniform distribution
runif_same_dims Create matrix of random values with dimensions copied from an existing matrix
seq_matrix Return a sequence of pairs (value, index vector)
set_values Set multiple values useing one function call
sv Set multiple values useing one function call
v A shortcut to create a vertical vector
with_same_dims Create new matrix copying dimensions from the existing one