I see, thanks a lot!
On 11/07/2014 05:31 PM, Arunkumar Srinivasan wrote: > Ah I see. There’s no direct way yet. you’ll have to specify the right > environment > > dt[x == eval(quote(x), parent.frame())] > > But we’re working on it to make these things simpler, and consistent. > > Arun > > On 7 Nov 2014 at 10:29:06, Michael Smith ([email protected] > <mailto:[email protected]>) wrote: > >> With 1.9.5 I get this (but how can I get the "outer" CIK?): >> >> > DT[CIK == (CIK)][FileDate <= 10104] >> CIK FileDate >> 1: 0000060512 8680 >> 2: 0000839087 10081 >> > DT[CIK == (CIK) & FileDate <= 10104] >> CIK FileDate >> 1: 0000060512 8680 >> 2: 0000839087 10081 >> >> >> On 11/07/2014 05:18 PM, Arunkumar Srinivasan wrote: >> > Which version please? >> > Did you try it with 1.9.5 to see if it’s been fixed already? >> > >> > Arun >> > >> > On 7 Nov 2014 at 09:51:57, Michael Smith ([email protected] >> > <mailto:[email protected]>) wrote: >> > >> >> Shouldn't the last two commands below yield identical results? >> >> >> >> DT <- >> >> data.table( >> >> CIK = c("0000060512", "0000839087"), >> >> FileDate = c(8680, 10081)) >> >> CIK = "0000839087" >> >> DT[CIK == (CIK)][FileDate <= 10104] >> >> >> >> CIK FileDate >> >> 1: 0000839087 10081 >> >> >> >> DT[CIK == (CIK) & FileDate <= 10104] >> >> >> >> CIK FileDate >> >> 1: 0000060512 8680 >> >> 2: 0000839087 10081 >> >> _______________________________________________ >> >> datatable-help mailing list >> >> [email protected] >> >> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help >> >> _______________________________________________ datatable-help mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
