File: Expand.Rd

package info (click to toggle)
r-cran-lava 1.8.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,816 kB
  • sloc: sh: 13; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (4)
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
}