Is this a know change of behaviour ?

R) data.table(x=c(1,2,3,4,5,6))
   x
1: 1
2: 2
3: 3
4: 4
5: 5
6: 6
R) dt = data.table(x=c(1,2,3,4,5,6))

#I think this used to work in 1.9.3
R) dt[x==min(x)]
Error in eval(expr, envir, enclos) : object 'x' not found

#This is equivalent (when there is a single minimum) to this
R) dt[which.min(x)]
   x
1: 1

#This works for sure
R) dt[x==min(dt$x)]
   x
1: 1




--
View this message in context: 
http://r.789695.n4.nabble.com/change-from-1-9-3-1-9-4-tp4706115.html
Sent from the datatable-help mailing list archive at Nabble.com.
_______________________________________________
datatable-help mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help

Reply via email to