cbind.repgrid: Concatenate the elements of two grids

View source: R/repgrid-basicops.r

cbind.repgridR 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)

OpenRepGrid documentation built on April 3, 2025, 11:15 p.m.