Description Usage Arguments Value See Also Examples
Reads the zones shapefile into SpatialPolygonsDataFrame, aggregates overall tip_fare ratio mean, and also for weekedays and weekends and return back the SpatialPolygonsDataFrame
1 | get_zones_with_aggregate_tripdata(taxidata, zones_newyork)
|
taxidata |
The taxi trip data that were read from |
zones_newyork |
is the New York zones sf object, if not present will be downloaded from NYC website |
A SpatialPolygonsDataFrame
with the zones features with the mean_tip_fair_ratio
, mean_ratio_weekend
and mean_ratio_weekday
read_NYC_trip_dataset
and preprocess_dataset
1 2 3 4 5 6 | ## Not run:
url = "https://s3.amazonaws.com/nyc-tlc/trip+data/green_tripdata_2017-02.csv"
taxidata = read_NYC_trip_dataset(url)
get_zones_with_aggregate_tripdata(taxidata)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.