Description Usage Arguments Details Value Note Examples
View source: R/country_ranges.R
Query https://www.iwik.org/ipcountry/ for the CIDR ranges for a given set of ISO 3166-1 alpha-2 country codes and return the results in a named list of character vectors.
1 | country_ranges(countries)
|
countries |
character vector of ISO 3166-1 alpha-2 country codes (case-insensitive) |
An internal cache of the CIDR query results are maintained as they only change
daily (12:00 CET). The cache can be flushed with flush_country_cidrs
and
which codes have been cached can be retrieved with cached_country_cidrs)
.
named list of character vectors of CIDR blocks
This function requires internet connectivity as it pulls daily updated data from https://www.iwik.org/ipcountry/.
1 | rng <- country_ranges(c("PW", "UZ"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.