geometries_data {WorldMapR}R Documentation

geometries_data

Description

This function generates a data frame with information about geometries and centroid coordinates of countries. You can choose whether to keep all the countries or only a subset.

Usage

geometries_data(exclude.iso.na = TRUE, countries.list = NULL)

Arguments

exclude.iso.na

if TRUE (default), countries that do not have a ISO 3166 code are excluded from the table.

countries.list

List of the ISO 3166-1 alpha-2 codes of countries that are to be included. By default it is set to NULL and all countries are included.

Value

an object of class data.frame and sf.

Examples

geometries_data(countries.list = c("IT", "FR", "US"))


[Package WorldMapR version 0.1.1 Index]