Description Usage Format Details Author(s) Source References Examples
There are three data tables containing information about NYC Taxi trips attached to this package.
1 2 3 |
yellow_2016_01_sample
datatable (tbl_df
) has 10,000 rows and 19 variables.
green_2016_01_sample
datatable (tbl_df
) has 10,000 rows and 21 variables.
The following variables are in yellow_2016_01_sample
or green_2016_01_sample
.
A code indicating the LPEP provider that provided the record.1= Creative Mobile Technologies, LLC; 2= VeriFone Inc.
The date and time when the meter was engaged.
The date and time when the meter was disengaged.
The number of passengers in the vehicle. This is a driver-entered value.
The elapsed trip distance in miles reported by the taximeter.
Longitude where the meter was engaged.
Latitude where the meter was engaged.
The final rate code in effect at the end of the trip. 1= Standard rate, 2=JFK, 3=Newark, 4=Nassau or Westchester, 5=Negotiated fare, 6=Group ride
This flag indicates whether the trip record was held in vehicle memory before sending to the vendor, aka "store and forward," because the vehicle did not have a connection to the server. Y= store and forward trip, N= not a store and forward trip
Longitude where the meter was timed off.
Latitude where the meter was timed off.
A numeric code signifying how the passenger paid for the trip. 1= Credit card, 2= Cash, 3= No charge, 4= Dispute, 5= Unknown, 6= Voided trip
The time-and-distance fare calculated by the meter.
Miscellaneous extras and surcharges. Currently, this only includes the $0.50 and $1 rush hour and overnight charges.
$0.50 MTA tax that is automatically triggered based on the metered rate in use.
Tip amount - This field is automatically populated for credit card tips. Cash tips are not included.
Total amount of all tolls paid in trip.
$0.30 improvement surcharge assessed on hailed trips at the flag drop. The improvement surcharge began being levied in 2015.
The total amount charged to passengers. Does not include cash tips.
The description of this variable is not available on TLC website.
A code indicating whether the trip was a street-hail or a dispatch that is automatically assigned based on the metered rate in use but can be altered by the driver. 1= Street-hail, 2= Dispatch
NYC's Taxi and Limousine Commission (TLC) Trip Data is a collection of trip records
including fields capturing pick-up and drop-off locations, times, trip distances, fares, rate types,
and driver-reported passenger counts. The data was collected and provided to the NYC TLC by
technology providers under the Taxicab & Livery Passenger Enhancement Programs.
The fist two tables are random samples of 100 observations generated by the sample
function
from the 2016 January green and yellow taxi trip data.
Wencong (Priscilla) Li
These data are recorded at http://www.nyc.gov/html/tlc/html/about/trip_record_data.shtml
The description of the data is available on http://www.nyc.gov/html/tlc/html/about/trip_record_data.shtml
1 2 3 4 5 6 7 8 9 | ## Not run:
#' #
if (require(dplyr) & require(ggplot2)) {
green_2016_01_sample %>%
filter(Trip_distance <= 1) %>%
ggplot(aes(x = Dropoff_longtitude, y = Pickup_latitude))
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.