1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Expand.R
\name{Expand}
\alias{Expand}
\title{Create a Data Frame from All Combinations of Factors}
\usage{
Expand(`_data`, ...)
}
\arguments{
\item{_data}{Data.frame}
\item{...}{vectors, factors or a list containing these}
}
\description{
Create a Data Frame from All Combinations of Factors
}
\details{
Simple wrapper of the 'expand.grid' function. If x is a table
then a data frame is returned with one row pr individual
observation.
}
\examples{
dd <- Expand(iris, Sepal.Length=2:8, Species=c("virginica","setosa"))
summary(dd)
T <- with(warpbreaks, table(wool, tension))
Expand(T)
}
\author{
Klaus K. Holst
}
|