download_nyc_data: Utility function that download NYC Open Data Open Portal data

Description Usage Arguments Examples

Description

Takes in arguments, sych as obj, year, names, as well as the stem of the URL and returns the matched file paths.

Usage

1
download_nyc_data(obj, url, years, n, names, ...)

Arguments

obj

an etl object

url

base url to desired file

years

a numeric vector giving the years. The default is the most recent year.

n

number of observations

names

names of the destination files

...

arguments passed to smart_download

Examples

1
2
3
4
5
6
## Not run: 
taxi <- etl("nyctaxi", dir = "~/Desktop/nyctaxi")
base_url <- "https://data.cityofnewyork.us/resource/edp9-qgv4.csv"
download_nyc_data(taxi, base_url, 2015, 100, "2015") 

## End(Not run)

beanumber/nyctaxi documentation built on May 12, 2019, 9:43 a.m.