I am discovering R
and I need to do some "grouping by" functionnality so I tried this
test<-data.frame(A=c(1,2,3,4),B=c(4,4,5,6))
test[,by=list(B)]
and I got this
Error in `[.data.frame`(test, , by = list(B)) :
unused argument (by = list(B))
where am I going wrong ?