[R] Data Frame Search Slow

TimothyDalbey tmdalbey at gmail.com
Tue Nov 22 22:30:10 CET 2011


So, here is the result time from using the datatable package:



> user  system elapsed 
>   0.800   0.012   1.847
> 

Here are the methods that I am using:

ush <- data.table(read.csv(...))
setkey(ush, product_id)
s1 <- subset(ush, product_id == product.id)

Seems like a minor improvement but not enough to get those subsets in less
than ~2 seconds.  Am I doing something wrong I wonder...


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



More information about the R-help mailing list