[R] Data Frame Search Slow

TimothyDalbey tmdalbey at gmail.com
Tue Nov 22 23:01:20 CET 2011


Answer to my own question:

ush <- data.table(read.csv(...))
setkey(ush, product_id)
s1 <- ush[J[product.id]]



> user  system elapsed 
>   0.000   0.000   0.003 
> 

It seems like that's the method to use!  Amazing.

--
View this message in context: http://r.789695.n4.nabble.com/Data-Frame-Search-Slow-tp4096906p4097576.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list