title: Use revalue in data manipulation with dplyr
body: <p>I wanted to use the following code, but its not working and I have no idea why?:</p>
  
  <pre><code>data &lt;- data.frame(variable1 = as.factor(rep(c("A","B","C"), each=5)),
                     variable2 = rnorm(15,10,2))
  
  require(plyr)
  require(dplyr)
  
  data &lt;- data %&gt;%
   revalue(variable1, c("A"="House", "B"="Flat", "C"="Loft"))
  </code></pre>