powered by
split
"split" (x, f, drop = FALSE, data = NULL, ...)
y ~ x
as.factor(f)
f
factor
split(extra ~ group, data = sleep)
Run the code above in your browser using DataLab