afrihighway: African trans-continental highway network lines

Description Usage Format Source See Also Examples

Description

a sf object of simplified lines of transcontinental highway network See data-raw/afrilearndata-creation.R for how the data object is created.

Usage

1

Format

Formal class 'sf'; 100 rows, 2 columns

Geographical coordinates WGS84 datum (CRS EPSG 4326)

Source

https://www.google.com/maps/d/u/0/viewer?msa=0&mid=1nEU2oBFzSxabx3Z14nTyZP3KSzY&ll=1.9249940151081273%2C12.874260000000021&z=3

See Also

https://en.wikipedia.org/wiki/Trans-African_Highway_network

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
if (requireNamespace("sf", quietly = TRUE)) {
  library(sf)
  data(afrihighway)
  # or
  filename <- system.file("extdata","trans-african-highway.kml",
                          package="afrilearndata", mustWork=TRUE)
  afrihighway <- sf::read_sf(filename)
  #remove Description column, only has contents in first row
  afrihighway <- afrihighway[ , which(names(afrihighway)!='Description')]

  plot(sf::st_geometry(afrihighway))
}

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