africapitals: African capital city points

Description Usage Format Source Examples

Description

a sf object points of African capital cities See data-raw/afrilearndata-creation.R for how the data object is created.

Usage

1

Format

Formal class 'sf'; 50 rows 5 columns

Geographical coordinates WGS84 datum (CRS EPSG 4326)

Source

https://cran.r-project.org/web/packages/maps/

Examples

1
2
3
4
5
6
7
8
9
if (requireNamespace("sf", quietly = TRUE)) {
  library(sf)
  data(africapitals)
  # or
  filename <- system.file("extdata","africapitals.gpkg", package="afrilearndata", mustWork=TRUE)
  africapitals <- sf::read_sf(filename)

  #plot(sf::st_geometry(africapitals))
}

afrimapr/afrilearndata documentation built on Nov. 13, 2021, 6:11 p.m.