hcat: Concatenate Matrices

Description Usage Arguments Value See Also Examples

Description

Concatenate matrices along the first or second dimension.

Usage

1
2
3

Arguments

...

Vectors or matrices.

Value

A matrix formed by combining the ... arguments column-wise (hcat) or row-wise (vcat).

See Also

bmat, cbind, rbind.

Examples

1
2
3
4
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")'

ramify documentation built on May 2, 2019, 5:58 a.m.