powered by
Concatenate matrices along the first or second dimension.
hcat(...)vcat(...)
vcat(...)
A matrix formed by combining the ... arguments column-wise (hcat) or row-wise (vcat).
...
hcat
vcat
Vectors or matrices.
bmat(), cbind(), rbind().
bmat()
cbind()
rbind()
m1 <- mat("1, 2, 3; 4, 5, 6") m2 <- mat("7, 8, 9; 10, 11, 12") hcat(m1, m2) # same as 'bmat("m1, m2")' vcat(m1, m2) # same as 'bmat("m1; m2")'
Run the code above in your browser using DataLab