etl_extract.etl_citibike: etl_extract

Description Usage Arguments Details Examples

Description

etl_extract

etl_load

etl_transform

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'etl_citibike'
etl_extract(obj, years = 2013, months = 7, ...)

## S3 method for class 'etl_citibike'
etl_load(obj, years = 2013, months = 7, ...)

## S3 method for class 'etl_citibike'
etl_transform(obj, years = 2013, months = 7, ...)

Arguments

obj

an etl object

years

a numeric vector indicating the years to be downloaded (default is 2013)

months

a numeric vector indicating the months to be downloaded (default is 7)

...

arguments passed to methods

Details

This function downloads NYC CitiBike data from citibike website for years and months specified. The downloaded files are saved as zip files in the raw directory under the folder the user created

This function loads NYC CitiBike data into a SQLite database for years and months specified.

This function unzips and reads in the NYC CitiBike data for years and months specified into R. After cleaning up and reformatting, R outputs the data and save as files.

Examples

1
2
3
4
5
6
7
8
## Not run: 
bikes <- etl("citibike", dir = "~/Desktop/citibike_data")
bikes %>%
  etl_extract() %>%
  etl_transform() %>%
  etl_load()

## End(Not run)

beanumber/citibike documentation built on June 4, 2019, 9:46 a.m.