cbind.repgrid {OpenRepGrid}R Documentation

Concatenate the elements of two grids

Description

Concatenate the elements of two grids

Usage

## S3 method for class 'repgrid'
cbind(..., .reorder = TRUE, .unique = FALSE)

Arguments

...

repgrid objects or list of objects.

.reorder

If TRUE (default), matches construct order of y to x.

.unique

If FALSE (default), x and y may have common elements. If FALSE, they must be mutually exclusive.

Value

repgrid with combined elements.

Examples

x <- boeker[, 1:2]
y <- boeker[, 5:7]
cbind(x, y)
x / y
y_reordered <- y[sample(nrow(y)), ]
cbind(x, y, y_reordered)

[Package OpenRepGrid version 0.1.18 Index]