[R] speed issue: gsub on large data frame

Simon Pickert simon.pickert at t-online.de
Mon Nov 4 23:57:10 CET 2013


Hi R’lers,

I’m running into speeding issues, performing a bunch of 

„gsub(patternvector, [token],dataframe$text_column)"

on a data frame containing >4millionentries.

(The “patternvectors“ contain up to 500 elements) 

Is there any better/faster way than performing like 20 gsub commands in a row?


Thanks!
Simon



More information about the R-help mailing list