Split by factor level

splitByLevel(x, f, ref = FALSE, ...)

Arguments

x

Object.

f

character(1). Factor column name.

ref

logical(1). Include the reference factor level (i.e. first defined) in each split. Useful for pairwise contrasts.

...

Additional arguments.

Value

list List of data frames split by factors.

See also

Examples

class(splitByLevel)
#> [1] "nonstandardGenericFunction" #> attr(,"package") #> [1] "methods"