afriairports: African airports

Description Usage Format Source Examples

Description

a sf object points of African airports. 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://ourairports.com/continents/AF/airports.csv

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
if (requireNamespace("sf", quietly = TRUE)) {
  library(sf)
  data(afriairports)

  # or read from the csv file which is stored in package as example to work with
  # filename <- system.file("extdata","afriairports.csv", package="afrilearndata", mustWork=TRUE)
  # dfairports <- readr::read_csv(filename)
  # and convert to sf object
  # afriairports <- sf::st_as_sf(dfairports, coords=c("longitude_deg", "latitude_deg"), crs=4326)

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

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