split_data | R Documentation |
Split up data matrix by subgroups
split_data(data, by = rep(1, nrow(data)), names = unique(by), warn = 10)
data |
matrix, contains (binary 0/1) data |
by |
integer vector |
names |
character, names of subgroups |
warn |
integer, a warning is given if |
useful to pass data to update_dist
if groups(dist) > 1
a list of data matrices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.