restcountries_tidy_data {tidycountries} | R Documentation |
restcountries_tidy_data
Description
A dataset containing tidied information about countries from the Restcountries API.
Usage
restcountries_tidy_data
Format
A data frame with several rows and the following columns:
- tld
Top-level domain(s) associated with the country.
- common_name
Common name of the country.
- official_name
Official name of the country.
- cca2
Country code (2-letter).
- cca3
Country code (3-letter).
- fifa
FIFA code of the country.
- independent
Independence status (TRUE/FALSE).
- status
Country status (e.g., officially assigned).
- un_member
Whether the country is a UN member (TRUE/FALSE).
- region
Geographic region.
- subregion
Subregion.
- population
Population of the country.
- capital
Capital city of the country.
- capital_lat
Latitude of the capital city.
- capital_lon
Longitude of the capital city.
- continents
Continent(s) the country is part of.
- lat
Latitude of the country.
- lon
Longitude of the country.
- landlocked
Whether the country is landlocked (TRUE/FALSE).
- borders
Countries that share a border.
- area
Total area of the country in square kilometers.
- start_of_week
Day the week starts (e.g., Monday).
- timezones
Timezones applicable to the country.
- root
Root of the country calling code.
- suffixes
Suffixes of the country calling code.
- car_side
Which side of the road cars drive on.
- googlemaps
Google Maps link for the country.
- openstreetmaps
OpenStreetMap link for the country.
- flags_png
URL to PNG image of the country flag.
- flags_svg
URL to SVG image of the country flag.
- flags_alt
Alternative text for the country flag.
- currencies
Currencies used in the country.
- languages
Languages spoken in the country.
- currency_name
Name of the primary currency used.
- currency_symbol
Symbol of the primary currency used.
- calling_code
Calling code(s) associated with the country.
Details
This dataset includes a variety of country-level data such as country codes, names, capitals, regions, subregions, continents, currencies, population, geographic coordinates, languages, and more.
Source
Data obtained from the Restcountries Json file and processed for use in this package.
Examples
# Load the dataset and view the first few rows
data(restcountries_tidy_data)
head(restcountries_tidy_data)