I want to split a data frame into several smaller ones. This looks like a very trivial question, however I cannot find a solution from web search.
If you want to split by values in one of the columns, you can use lapply. For instance, to split ChickWeight into a separate dataset for each chick:
lapply
ChickWeight
data(ChickWeight) lapply(unique(ChickWeight$Chick), function(x) ChickWeight[ChickWeight$Chick == x,])