Re: [R] Obtain a list of data tables from a main data table

2014-10-08 Thread Frank S.
Hi, I think I got it! The clue: Function split! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Obtain a list of data tables from a main data table

2014-10-08 Thread David Winsemius
On Oct 8, 2014, at 8:06 AM, Frank S. wrote: > > > Hi everybody, > > > > I have (as an example) the following > two data tables: > > > > all <- > data.table(ID = c(rep(c(100:105),c(3,2,2,3,3,3))), > > value = > c(100,120,110,90,45,35,270,50,65,40,25,55,75,30,95,70)) > > DT <- > data.

Re: [R] Obtain a list of data tables from a main data table

2014-10-08 Thread Jeff Newmiller
Please be aware that by posting your question in HTML format instead of plain text you have sent us a corrupted message. Please adjust your email software settings when sending to this list. I thought the whole purpose of data.table was to allow group data processing without creating oodles of

[R] Obtain a list of data tables from a main data table

2014-10-08 Thread Frank S.
Hi everybody, I have (as an example) the following two data tables: all <- data.table(ID = c(rep(c(100:105),c(3,2,2,3,3,3))), value = c(100,120,110,90,45,35,270,50,65,40,25,55,75,30,95,70)) DT <- data.table(ID = 100:105, code=c(2,1,3,2,3,1)) My aim is to construct as many sub