Message-ID: <1321999280065-4097576.post@n4.nabble.com>
Date: 2011-11-22T22:01:20Z
From: TimothyDalbey
Subject: Data Frame Search Slow
In-Reply-To: <1321997410095-4097441.post@n4.nabble.com>
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.