Rev 4966 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{make.groups}\alias{make.groups}\title{ Grouped data from multiple vectors }\description{Combines two or more vectors, possibly of different lengths, producinga data frame with a second column indicating which of these vectorsthat row came from. This is mostly useful for getting data into aform suitable for use in high level Lattice functions.}\usage{make.groups(\dots)}\arguments{\item{\dots}{one or more vectors of the same type (coercion is attempted if not)}}\value{A data frame with two columns\item{\code{data}}{all the vectors supplied, concatenated}\item{\code{which}}{factor indicating which vector the corresponding \code{data} valuecame from}}\author{Deepayan Sarkar \email{Deepayan.Sarkar@R-project.org}}\seealso{\code{\link{Lattice}}}\examples{sim.dat <-make.groups(uniform = runif(200),exponential = rexp(175),lognormal = rlnorm(150),normal = rnorm(125))qqmath( ~ data | which, sim.dat, scales = list(y = "free"))}\keyword{dplot}