title: Could not find function mutate_if
body: <p>I am trying to use the function <code>mutate_if</code> under <code>dplyr()</code> package to convert all the character columns to factor columns. I am aware of alternate approaches for this transfromation, but I am curious to see how <code>mutate_if</code> works. I tried the following command:</p>
  
  <pre><code>df &lt;-df %&gt;% mutate_if(is.character,as.factor)
  </code></pre>
  
  <p>But I am geting a message, :</p>
  
  <blockquote>
    <p><code>could not find function mutate_if</code></p>
  </blockquote>
  
  <p>I reinstalled <code>dplyr()</code> but still I am getting the same error message.</p>