EU-ECDC / EcdcSupportSnippets

Development of various support R code snippets and packages for use for analysis and modelling purposes.
European Union Public License 1.2
7 stars 2 forks source link

Use uppercase in convert_country lookups #2

Open mariabnd opened 5 years ago

mariabnd commented 5 years ago

Detailed description

Make slight changes to inputs and lookups used in convert_country to avoid potential user input errors.

Context

Currently the only limitations on name input has to do with length of ISO 3166 alpha-2 inputs.

Possible implementation

Using toupper() within the function for the lookup and toTitleCase() when returning full country name