File: add-group-by.rd

package info (click to toggle)
r-cran-ggplot2 0.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,084 kB
  • sloc: makefile: 3
file content (19 lines) | stat: -rw-r--r-- 473 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
\name{add_group}
\alias{add_group}
\title{Add group}
\author{Hadley Wickham <h.wickham@gmail.com>}

\description{
Ensure that the data frame contains a grouping variable.
}
\usage{add_group(data)}
\arguments{
\item{data}{data.frame}
}
\value{data.frame with group variable}
\details{If the \code{group} variable is not present, then a new group
variable is generated from the interaction of all discrete (factor or
character) vectors excluding label.}


\keyword{internal}