title: recode in dplyr giving Error: Argument 2 must be named, not unnamed
body: <p>I have a dataframe "employee" like this:</p>
  
  <pre><code>Emp_Id,Name,Dept_Id
  20203,Sam,1
  20301,Rodd,2
  30321,Mike,3
  40403,Derik,4
  </code></pre>
  
  <p>Now i want to transform this dataframe in a way that the Dept_Id have department names instead of Dept_Id.</p>
  
  <p>I am trying to use <code>recode</code> from <code>dplyr</code>for this, since my transformation logic comes from a csv, I would have to use a variable in place of transformation logic.</p>
  
  <p>I used read.csv to get my dataframe <code>df</code> where my logic (<code>1=HR,2=IT</code> and so on) sits and then get it in a list:</p>
  
  <pre><code>df:
  
  Source,Target,Transformation
  Employee,Emp,"1=HR,2=Sales,3=Finance,4=IT"
  </code></pre>
  
  <p>To get the transaformation login from <code>df</code></p>
  
  <pre><code>myList &lt;- as.character(df[1,3])
  </code></pre>
  
  <p>Now replacing the data in employee as per the logic</p>
  
  <pre><code>employee$Dept_Id &lt;- recode(employee$Dept_Id,myList)
  </code></pre>
  
  <p>On this line it is giving me:</p>
  
  <pre><code>Error: Argument 2 must be named, not unnamed
  </code></pre>