anim wt
1 181.0 0
2 179.0 1
3 180.5 0
4 201.0 1
5 201.5 1
If I wanted to split this data set into two group. Once group whose wt value 1 and another whose wt value is 0 how do I do that using R. I know you have to use the split function. But don't know which parameters to specify.