trinker / qdap

Quantitative Discourse Analysis Package: Bridging the gap between qualitative data and quantitative analysis
http://cran.us.r-project.org/web/packages/qdap/index.html
175 stars 44 forks source link

Changed multigsub to use mgsub::mgsub #237

Closed bmewing closed 6 years ago

bmewing commented 6 years ago

I noticed at work that the mgsub implementation in qdap doesn't do it's operations in a way that support transposition, word shifting or protection against regex substring matching. I've captured and documented examples on my blog. http://thug-r.life/post/2018-01-26-mgsub-launched/

I forked qdap, added mgsub as a dependency and modifed the multigsub function to use mgsub::mgsub. I tested the functionality of the new mgsub and it works in all cases now.