Split a data frame into subsets grouping by one or more factors.
This function is used to split a data frame into a named list where each element is a level of the grouping variable (or combination of grouping variables).
Usage
split_factors(.data, ..., keep_factors = FALSE)
as.split_factors(.data, keep_factors = FALSE)
is.split_factors(x)
Value
A list where each element is a named level of the grouping factors. If more than one grouping variable is used, then each element is the combination of the grouping variables.
Details
split_factors()
Split a data frame by factors.as.splict_factors()
coerce to an object of classsplit_factors
is.splict_factors()
check if an object is of classsplit_factors
Author
Tiago Olivoto tiagoolivoto@gmail.com