supported_countries: Retrieve the supported countries for each API

Description Usage Arguments Value Warning Examples

View source: R/api_structure.R

Description

Scrapes the API websites to retrieve an updated list of supported countries for each API.

Usage

1

Arguments

type

Obligatory parameter to define the API from which to obtain the supported countries. Must be one of the following character strings:

  • genderize - Available countries for the Genderize.io API.

  • agify - Available countries for the Agify.io API.

  • nationalize - Available countries for the Nationalize.io API.

Value

Returns a data.frame with the supported ISO 3166-1 alpha-2 country code, country name the number of items (names) for each country.

Warning

Please be conscious that this function directly scrapes the website, do not overuse it as it might overwhelm the server.

Examples

1
2
3
4
## Not run: 
supported_countries(type="genderize")

## End(Not run)

DemografixeR documentation built on July 8, 2020, 5:18 p.m.