powered by
Scrapes the API websites to retrieve an updated list of supported countries for each API.
supported_countries(type)
Obligatory parameter to define the API from which to obtain the supported countries. Must be one of the following character strings:
character
genderize - Available countries for the Genderize.io API.
genderize
agify - Available countries for the Agify.io API.
agify
nationalize - Available countries for the Nationalize.io API.
nationalize
Returns a data.frame with the supported ISO 3166-1 alpha-2 country code, country name the number of items (names) for each country.
data.frame
Please be conscious that this function directly scrapes the website, do not overuse it as it might overwhelm the server.
# NOT RUN { supported_countries(type="genderize") # }
Run the code above in your browser using DataLab