Hi,

Is the following expected behavior?

DT = data.table(x=rep(c("a","b","c"),each=3), TF=c(TRUE,FALSE,TRUE))

#All of these return what I expect:

DT[c(TRUE, FALSE, TRUE)]
DT[TF==TRUE]
DT[DT$TF]

#Why doesn't this?
DT[TF]
#Error in eval(expr, envir, enclos) : object 'TF' not found

Thanks,
Garrett
_______________________________________________
datatable-help mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help

Reply via email to