rw_import_elgin_batch: Bulk Import Elgin road works data

Description Usage Arguments Details Examples

Description

This function imports data that has already been downloaded from http://downloads.roadworks.org/

Usage

1
2
rw_import_elgin_batch(folder_path, method = c("ttvdd", "ed",
  "restrictions", "htdd"), pattern, ...)

Arguments

folder_path

path to folder containing csv file or compressed csv file

method

name of import algorithum to use

pattern

character string containing a regular expression. This is used as a filter rule for file names. For example pattern = "test" whold only import files with test in the file name. Passed to base::grepl

...

additonal variaibles passed to grepl

Details

A useful pattern is 'pattern = '^(?!.*log).*ttvdd' Which will return all files names with 'ttvdd' but exclude all file names with 'log' You must also pass the perl = TRUE parameter

Examples

1
2
3
4
## Not run: 
d = rw_import_elgin_batch("C:/data","rw_import_elgin_ttvdd", '^(?!.*log).*ttvdd', perl = TRUE)

## End(Not run)

ITSLeeds/roadworksUK documentation built on May 31, 2019, 5:18 p.m.