country.data: Get Country Data

View source: R/country.data.R

country.dataR Documentation

Get Country Data

Description

Get Country Data

Usage

country.data(columns = NULL, countries = NULL, list = FALSE)

Arguments

columns

Columns to return (NULL returns all)

countries

Which countries to return (list of ISO codes)

list

Return a vector with all possible columns?

This file provides data on countries, updated regularly. If list = TRUE, other parameters will be overridden and it will return a list of columns. Otherwise it will return a data frame that includes the selected countries and columns.

Examples

# All country data
mc <- country.data()

country.data("country", "DEU")

country.data(c("country", "region"), c("DEU", "USA", "BRA", "ZAF"))


philbastian/matchcountry documentation built on June 12, 2025, 11:46 p.m.