forked from IndrajeetPatil/ggstatsplot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrouped_list.Rd
27 lines (26 loc) · 860 Bytes
/
grouped_list.Rd
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers_grouped_functions.R
\name{grouped_list}
\alias{grouped_list}
\title{Split dataframe into a list by grouping variable.}
\usage{
grouped_list(data, grouping.var = NULL)
}
\arguments{
\item{data}{A dataframe (or a tibble) from which variables specified are to
be taken. Other data types (e.g., matrix,table, array, etc.) will \strong{not}
be accepted.}
\item{grouping.var}{A single grouping variable (can be entered either as a
bare name \code{x} or as a string \code{"x"}).}
}
\description{
This function splits the dataframe into a list, with the length
of the list equal to the factor levels of the grouping variable. Each
element of the list will be a tibble.
}
\examples{
\donttest{
ggstatsplot:::grouped_list(ggplot2::msleep, grouping.var = vore)
}
}
\keyword{internal}