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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.