title: How to convert country codes into country names
body: <p>Here's my reproducible code:</p>
  
  <pre><code>library(tidyverse)
  library(eurostat)
  library(countrycode)
  
  #Query eurostat data set
  search &lt;- search_eurostat("road", type = "table")
  
  #Accessing "People killed in road accidents" data set.
  df &lt;- get_eurostat("tsdtr420")
  
  #Create a data frame filtered on most recent data (2015)
  accidents2015 &lt;- df %&gt;%
    filter(time == "2015-01-01") 
  
  codes &lt;- select(accidents2015, geo)
  
  countrycode(sourcevar = codes, "iso2c", "country_name")
  </code></pre>
  
  <p>When the last line runs I get this error message:</p>
  
  <blockquote>
    <p>the condition has length > 1 and only the first element will be usedError in countrycode(sourcevar = codes, "iso2c", "country_name") : 
          sourcevar must be a character or numeric vector.</p>
  </blockquote>