data-raw/README.md

Example data sets inlcuded in drtplanr

How to

To recreate the package example data run the following command from the data-raw directory root:

./create.sh -k "<YOUR API KEY>"

Note: A HERE API key is required and the following R packages are required: data.table, sf and hereR.

Load the example is R

To read the example data from the package use:

aoi <-
  "example.gpkg" %>% system.file(package="drtplanr") %>%
  sf::st_read(layer = "aoi", quiet = TRUE)

pop <-
  "example.gpkg" %>% system.file(package="drtplanr") %>%
  sf::st_read(layer = "pop", quiet = TRUE)

References



munterfinger/drtplanr documentation built on Oct. 3, 2021, 7:28 p.m.