fork download
  1.  
  2. lst = data.frame(
  3. a=c(1,1,2,2),
  4. b=c(1,2,1,1)
  5. )
  6.  
  7. print(lst)
  8.  
  9. print(split(lst, lst$a))
  10.  
Success #stdin #stdout 0.28s 39796KB
stdin
Standard input is empty
stdout
  a b
1 1 1
2 1 2
3 2 1
4 2 1
$`1`
  a b
1 1 1
2 1 2

$`2`
  a b
3 2 1
4 2 1