Learn R Programming

WorldMapR (version 1.3.0)

geometries_data: geometries_data

Description

This function is deprecated and not exported. It has been substituted with worldMapR::countrycoord_data. 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)

Value

an object of class data.frame and sf.

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.