powered by
Peculiar version of expand.grid() for matrices
expand.grid()
mult_grid(L) pair_grid(a,b)
List of matrices
Matrices
Robin K. S. Hankin
Function pair_grid(a,b) returns a matrix with each column of a cbind()-ed to each column of b.
pair_grid(a,b)
a
cbind()
b
Function mult_grid() takes a list of matrices; it is designed for use by ggrl().
mult_grid()
ggrl()
ggrl
pair_grid(diag(2),diag(3)) mult_grid(lapply(1:4,diag))
Run the code above in your browser using DataLab