multi.columns: The multiple columns or a list of vectors to paste together.
sep: The character to be used in paste2 to paste the columns.
handle.na: logical. If TRUE returns NA if any column/vector contains a missing value.
trim: logical. If TRUE leading/trailing white space is removed.
mat: A matrix or dataframe.
combined.columns: A list of named vectors of the colnames/indexes of the numeric columns to be pasted. If a vector is unnamed a name will be assigned.
name.sep: The character to be used to paste the column names.
keep.orig: logical. If TRUE the original columns (i.e., combined.columns) will be retained as well.
``: Other arguments passed to paste2.
Returns
paste2 - Returns a vector with row-wise elements pasted together.
colpaste2df - Returns a dataframe with pasted columns.
Note
paste differs from paste2
because paste does not allowed an unspecified number of columns to be pasted. This behavior can be convenient for inside of functions when the number of columns being pasted is unknown.