grouped_list

0th

Percentile

Split dataframe into a list by grouping variable.

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.

Keywords
internal
Usage
grouped_list(data, grouping.var)
Arguments
data

A dataframe (or a tibble) from which variables specified are to be taken. A matrix or tables will not be accepted.

grouping.var

A single grouping variable (can be entered either as a bare name x or as a string "x").

Aliases
  • grouped_list
Examples
# NOT RUN {
ggstatsplot:::grouped_list(data = ggplot2::msleep, grouping.var = vore)
# }
Documentation reproduced from package ggstatsplot, version 0.0.11, License: GPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.