I installed countrycode
and called it in Rstudio. Here is my code:
countrycode("ccode", "cown", "iso3c" warn = TRUE nomatch = NA)
I get an error message saying:
Error: unexpected symbol in "countrycode("ccode", "cown", "iso3c", warn=TRUE nomatch"
where ccode
is the name of the variable I am trying to convert, cown
indicates that ccode
is in the numeric form of the correlates of war code, and iso3c
is the code I am trying to transform it into.
What am I doing wrong? I think I'm following the example in the countrycode pdf exactly. When I search my dataframe I can't find the iso3c
variable that I assume should be created. There is no new response variable with another name either.