title: Change name of dataframe based on a string vector
body: <p>I am reading a couple of excel files from a directory and I want the dataframe that is read to be dynamically named as per a vector of strings</p>
  
  <p>I have a string vector which has name of countries
  <code>cnts &lt;- c("de", "ar", "fr")</code></p>
  
  <p>Then I read an excel file, whose path is stored in a vector (file) already
  <code>df &lt;- read.xlsx(file[1], 1)</code>
  Now I want to rename df to the first element in the countries vector, so I do 
  <code>cnts[1] &lt;- df</code></p>
  
  <p>But this does not work and gives me an error </p>
  
  <blockquote>
    <p>In cnts[2] &lt;- df 
      number of items to replace is not a multiple of replacement length</p>
  </blockquote>
  
  <p>I want the df to renamed as de
  I know the problem, it is trying to write the whole df to a string vector at position 1, but how can I <em>dynamically</em> rename dataframes?</p>