create_borough_features: Creates New York borough features for doing borough level map...

Description Usage Arguments Value See Also Examples

Description

Reads zones shapefile provided by user, or download it from NYC website if not provided, joins each borough's zones features together to create a geometry for each borough with its name attribute

Usage

1
create_borough_features(zones_shapefile)

Arguments

zones_shapefile

zones shapefile as an sf object, or downloads it from https://s3.amazonaws.com/nyc-tlc/misc/taxi_zones.zip if it's left empty

Value

A SpatialPolygonsDataFrame with the borough's geometries and borough names

See Also

read_NYC_trip_dataset and preprocess_dataset

Examples

1
2
3
4
## Not run: 
   boroughs = create_borough_features()

## End(Not run)

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