dplyr is the only package that can handle my 843k data.frame and query it in a fast way. I can filter fine using some math and equal criteria, however I need to implement a search for a concept.
I need something like this sqldf query
library(sqldf)
head(iris)
sqldf("select * from iris where lower(Species) like '%nica%'")
In dplyr help I was not able to find how I could do it. something like:
filter(iris,Species like '%something%')
The starting and ending % is very important. Also, note that the data frame has 800+k rows so traditional R functions may run slow. It has to bee a dplyr based solution.
dplyr is the only package that can handle my 843k data.frame
- I highly suggest the R packagedata.table
. – nrusselldplyr
can work with data tables, but unless you explicitly loaddata.table
and convert your data.frames to data.tables, it won't use it under the hood. Doing so might give you additional speed gains. – Gregor Thomas