Learn R Programming

OpenRepGrid (version 0.1.17)

cbind.repgrid: Concatenate the elements of two grids

Description

Concatenate the elements of two grids

Usage

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

Value

repgrid with combined elements.

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.

Examples

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

Run the code above in your browser using DataLab