I have a large dataset and I wanted to read it in with fread, taking advantage of the select argument to only pick columns I need for this specific analysis. I was wondering if anyone knows a way that I could also filter a text column? something like dt %>% filter(str_detect(name, "Mary")) but in the fread function? Thanks.
freadbut it is possible with packagesqldf. This package accepts SQL statements making it very flexible but also slow to very slow. In the case of large files (how large is it?) it can save a lot of memory since it filters out what is not needed keeping only what is in theSELECTstatement.