Grouped data from multiple vectors
make.groups.RdCombines two or more vectors, possibly of different lengths, producing a data frame with a second column indicating which of these vectors that row came from. This is mostly useful for getting data into a form suitable for use in high level Lattice functions.
Value
When all the input arguments are vectors, a data frame with two columns
dataall the vectors supplied, concatenated
whichfactor indicating which vector the corresponding
datavalue came from
When all the input arguments are data frames, the result of
rbind applied to them, along with an additional
which column as described above.
Author
Deepayan Sarkar Deepayan.Sarkar@R-project.org
