Build Data Frame from Columns

DESCRIPTION:
Allows the user to build a data frame by combining vectors, existing data frames, or matrices.

USAGE:
cbind.data.frame(..., row.names=NULL)

REQUIRED ARGUMENTS:
...:
either vectors, data frames, or matrices.

OPTIONAL ARGUMENTS:
row.names:
optional row names attribute for the result.

VALUE:
a data frame, formed using the vectors, the variables in the data frames, or the columns of the matrices as variables. If row names are not supplied, the first row names of a data frame or matrix encountered will be used.

HINTS:
This is a method for the generic function cbind. The intended use is as noted to combine single vectors, existing data frames and matrices. Vectors of shorter length (most usefully, of length 1) will be lengthened. If none of the arguments is a data frame, as.data.frame will be called to convert the result. In this case, of course, you have to call the method explicitly, not by calling cbind. Unless you need to supply a matrix as an argument or don't want to be bothered expanding short vectors, the expression as.data.frame(list(...)) is equivalent and faster than using the present function. There is no attempt in cbind.data.frame to check multiple data frames for consistency of row names, etc. The first relevant argument wins.

SEE ALSO:
cbind , data.frame .

EXAMPLES:
cbind(1, fuel.frame)