get_boroughs_with_aggregate_trip_data: aggregates data from taxi trip data into the boroughs level

Description Usage Arguments Value See Also Examples

Description

calculates mean tip-fare ratio for each borough for each day of the week, for each time of the day and for weekend/non-weekend properties

Usage

1

Arguments

taxidata

The taxi trip data that were read from read_NYC_trip_dataset and preprocessed preprocess_dataset

boroughs

is the New York zones sf object, if not present will be downloaded from NYC website

Value

A SpatialPolygonsDataFrame with the zones features with the mean_tip_fair_ratio, mean_ratio_weekend and mean_ratio_weekday

See Also

read_NYC_trip_dataset and preprocess_dataset

Examples

1
2
3
4
5
## Not run: 
   boroughs = create_borough_features()
   get_boroughs_with_aggregate_trip_data(taxidata, boroughs)

## End(Not run)

alaacs/nytaxi documentation built on May 9, 2019, 7:31 p.m.