Learn R Programming

GDINA (version 2.9.4)

cjoint: Combine R Objects by Columns

Description

Combine a sequence of vector, matrix or data-frame arguments by columns. Vector is treated as a column matrix.

Usage

cjoint(..., fill = NA)

Value

a data frame

Arguments

...

vectors or matrices

fill

a scalar used when these objects have different number of rows.

See Also

Examples

Run this code
cjoint(2,c(1,2,3,4),matrix(1:6,2,3))
cjoint(v1 = 2, v2 = c(3,2), v3 = matrix(1:6,3,2),
       v4 = data.frame(c(3,4,5,6,7),rep("x",5)),fill = 99)

Run the code above in your browser using DataLab