CJ Yetman

Results 194 comments of CJ Yetman

I don't believe that `sunburstR` has a built-in option to adjust the font size of the legend, however, you could achieve this by using `htmlwidgets::onRender()` to inject JavaScript when the...

does this do what you want `sunburst(pathLA[, 5:6], colors = pathLA$hex_phen)`?

Just hit this one, "Central African Rep.", in CEPII IPD 2012... ```r > countrycode("Central African Rep.", "country.name", "country.name") [1] NA Warning message: In countrycode("Central African Rep.", "country.name", "country.name") : Some...

I think we're already on that slope since we currently do: "Korea, Rep. of", "Rep. of Korea", "U.S.A.", "D.P.R. Korea", "D.R. Congo", "U.S. Virgin Islands", etc. Since there's a finite...

changed the title because this thread eventually led to an agreement that some abbreviations should be considered for addition to the regexes

hahaha.... awesome!

Since the data included in the package already has `un.regionsub.code` and `un.regionsub.name`, you could achieve this like... ``` r library(countrycode) custom_dict [1] "Northern Africa" ``` You have to create a...

@vincentarelbundock should we consider auto-coercing mismatched `sourcever` and `origin` types?

> @cjyetman, I have included a sanity check with an informative error when the origin code is numeric but the user tries to convert a character vector ([00b8c29](https://github.com/vincentarelbundock/countrycode/commit/00b8c29924e2fbfbab95e363e2a3ae13d09774bb)). At the...

Technically speaking, in iso2c "AN" is "Transitionally reserved" and "IC" is "Exceptionally reserved". `{countrycode}` only includes "Officially assigned" codes from iso2c because unofficial codes can be (and are) used inconsistently...