title: how to remove words of specific length in a string in R?
body: <p>I want to remove words of length less than 3 in a string. for example my input is </p>
  
  <pre><code>str&lt;- c("hello RP have a nice day")
  </code></pre>
  
  <p>I want my output to be </p>
  
  <pre><code>str&lt;- c("hello have nice day")
  </code></pre>
  
  <p>Please help</p>