fetch_dates: fetch_dates

Description Usage Arguments Details Value Examples

View source: R/fetch.R

Description

Fetch data from Valley Bike service for specified dates.

Usage

1
2
3
4
5
6
7
fetch_dates(
  start_date,
  end_date,
  output_dir = ".",
  replace = FALSE,
  quiet = FALSE
)

Arguments

start_date

The string (yyyy-mm-dd) for start of queried range

end_date

The string (yyyy-mm-dd) for end of queried range

output_dir

An existing directory to store downloaded files

replace

Boolean to overwrite existing files

quiet

Boolean to omit download messages

Details

Fetch data from Valley Bike service for specified dates. Provide a start date and an endate as well as a place to save the files that will be downloaded. The list of file paths for the downloaded files are returned invisibly.

Value

invisible(output_paths) List of file paths to downloaded files

Examples

1
2
3
# Fetch all files for August 2018 without printing messages.

fetch_dates("2018-08-01", "2018-09-01", quiet = TRUE)

Amherst-Statistics/ValleyBikes documentation built on Sept. 23, 2020, 7:36 a.m.