get_trips: Pull trips from shl, fhv or yellow records for a given date...

Description Usage Arguments Examples

View source: R/trip_functions.R

Description

This function allows you to access rbin files on the shared ride to query quickly trip data from any of our services.

Usage

1
2
3
get_trips(service, dt_start = NULL, dt_end = NULL, features = NULL,
  hack_fil = NULL, dt_convert = T, merge_ent = F, odbc_con = NULL,
  query = NULL, left_key = NULL, right_key = NULL, join_type = NULL)

Arguments

service

the service you want in quotes: 'fhv'.

dt_start

start date of range.

dt_end

end date of range.

features

a character vector of desired variables.

hack_fil

a character vector of desired hacks to filter on.

dt_convert

do you want dates to be automatically converted, defaults to T.

merge_ent

if True merges against entity automatically, defaults to FALSE.

odbc_con

for accessing sql tables in function, pass your odbc connection string.

query

a character string encompassing the sql query.

left_key

the left join key in the trip records.

right_key

the right join key in entity.

join_type

the type of join desired, currently experimental, defaults to left.

Examples

1
get_trips("fhv",dt_start = "2017-06-01", dt_end = "2017-06-01", features = c("hack","plate","pudt","dodt"))

datafaust/cabbietools documentation built on May 21, 2019, 3:08 a.m.