Learn R Programming

multicross (version 2.1.0)

split_mat: Split a data frame or matrix into subsets based on a particular categorical variable

Description

Split a data frame or matrix into subsets based on a particular categorical variable

Usage

split_mat(obj, by)

Arguments

obj

is a data frame or matrix to be split into subsets, divided by the categorical variable

by

is a character-string that specifies the columns that need to be subsetted

Value

A list containing the subsetted data sets. The names of the list corresponds to the value of the subsetted list