title: remove multiple patterns from text vector r
body: <p>I want to remove multiple patterns from multiple character vectors. Currently I am going: </p>
  
  <pre><code>a.vector &lt;- gsub("@\\w+", "", a.vector)
  a.vector &lt;- gsub("http\\w+", "", a.vector)
  a.vector &lt;- gsub("[[:punct:]], "", a.vector)
  </code></pre>
  
  <p>etc etc. </p>
  
  <p>This is painful. I was looking at this question &amp; answer: <a href="https://stackoverflow.com/questions/19424709/r-gsub-pattern-vector-and-replacement-vector">R: gsub, pattern = vector and replacement = vector</a> but it's not solving the problem. </p>
  
  <p>Neither the <code>mapply</code> nor the <code>mgsub</code> are working. I made these vectors</p>
  
  <pre><code>remove &lt;- c("@\\w+", "http\\w+", "[[:punct:]]")
  substitute &lt;- c("")
  </code></pre>
  
  <p>Neither <code>mapply(gsub, remove, substitute, a.vector)</code> nor <code>mgsub(remove, substitute, a.vector) worked.</code></p>
  
  <p><code>a.vector</code> looks like this: </p>
  
  <pre><code>[4951] "@karakamen: Suicide amongst successful men is becoming rampant. Kudos for staing the conversation. #mental"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
  [4952] "@stiphan: you are phenomenal.. #mental #Writing. httptxjwufmfg"   
  </code></pre>
  
  <p>I want: </p>
  
  <pre><code>[4951] "Suicide amongst successful men is becoming rampant Kudos for staing the conversation #mental"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
  [4952] "you are phenomenal #mental #Writing"   `
  </code></pre>