Official Website: https://r2country.obi.obianom.com ![](https://camo.githubusercontent.com/5b87b5758b8bed53c425b1935ae1c5a7d9b91fdfd4fe52d52234ff07389aaefc/68747470733a2f2f7232636f756e7472792e6f62692e6f6269616e6f6d2e636f6d2f6865782d7232636f756e7472792e706e67)
View Rmd Demo: https://r2country.obi.obianom.com/visualizeCountries.html
View Shiny Demo: https://shinyappstore.com/a/r2country
@@ Quick calls to obtain various country info for use in writing R markdown and developing robust applications @@
! Please NOTE that currently the 'timeIn' call may not provide 100% accurate result for time in particular places. This aspect is being worked on for the next version, so don't fret !
remotes::install_github("oobianom/r2country")
#or from CRAN
install.packages("r2country")
#load package
library(r2country)
#get countries
countries
#or
#get countries in uppercase
COUNTRIES
data(country_calling_code) # calling code for countries
data(country_population) # population by year for countries
data(city_time) # time by city
data(country_names) # country names
data(country_money) # countries currency
data(country_language) # country language
data(country_capital) #country capitals
data(country_continent)# continent countries
#get capital of a country
capitalOf$nigeria #for nigeria
capitalOf$china #for china
capitalOf[c("slovenia","romania","malaysia")] #get multiple capitals
#get offical languages of a country
languageOf$romania #for romania
languageOf$mexico #for mexico
languageOf[c("egypt","united kingdom","taiwan")] #get multiple languages
#get population count of country
populationOf$india #for india
populationOf$brazil #for brazil
populationOf[c("slovenia","ghana","nigeria")] #get multiple countries
#get the current time in a place
grep("usa,",names(timeIn), value = T) #get the available USA regions
timeIn$`usa, california, oakland` #get the current time in Oakland, California
grep("nigeria,",names(timeIn), value = T) #get the available Nigeria regions
timeIn$`nigeria, lagos, lagos` #get the current time in Lagos, Nigeria
# And others...
๐ด For complete list, go to official website above