clip_ftw: Clip Fietstelweek data to a study area of interest

Description Usage Arguments Value

View source: R/download_clip.R

Description

Clips the Fietstelweek data on a system directory to a study area within the Netherlands, either a municipality or a province for 2015 and/or 2016 and saves it as three files: edges.gpkg, nodes.gpkg, routes.csv. It can be used after applying the downloader_ftw function, or providing the user's self-downloaded data.

Usage

1
2
3
4
clip_ftw(directory, year, study_area, municipality = TRUE, ...,
  edges_file_2015 = NULL, nodes_file_2015 = NULL,
  routes_file_2015 = NULL, edges_file_2016 = NULL,
  nodes_file_2016 = NULL, routes_file_2016 = NULL)

Arguments

directory

filepath to the directory where the Fietstelweek data is and will be stored.

year

desired year of analysis, can either be 2015, 2016, or both c(2015,2016).

study_area

name of the municipality or province to clip the data to. The parameter is case sensitive and prone to fail with spelling mistakes. To have a full list of the municipalities and provinces names allowed, please type on the console View(municipalities) or View(provinces).

municipality

logical value. Indicates if the study area is a municipality (TRUE) which is the default, or a province (FALSE).

...

ignored

edges_file_2015

self downloaded filepath for the edges file for 2015. Its format should be compatible with st_read.

nodes_file_2015

self downloaded filepath for the nodes file for 2015. Its format should be compatible with st_read.

routes_file_2015

self downloaded filepath for the routes file for 2015. Its format should be compatible with fread.

edges_file_2016

self downloaded filepath for the edges file for 2016. Its format should be compatible with st_read.

nodes_file_2016

self downloaded filepath for the nodes file for 2016. Its format should be compatible with st_read.

routes_file_2016

self downloaded filepath for the routes file for 2016. Its format should be compatible with fread.

Value

Prints the directory where the data has been saved.


loreabad6/ftw documentation built on March 10, 2021, 1:19 p.m.