transformation: Keep the relevant variables

Description Usage Arguments Value

Description

Keep the relevant variables

Usage

1

Arguments

list

List coming from a line of our initial data frame, corresponds to a taxi ride. list[1] is the date of the trip (in basic date format) list[2] is the price of the trip list[4],list[5] are the latitudes and longitudes of the pickup point list[6],list[7] are the latitudes and longitudes of the dropoff point list[8] is the ID of the passenger

grid

Our spatial grid

Value

A new data frame with the variables which interest us : longitude of pickup latitude of pickup longitude of dropoff latitude of dropoff id of the pickup case id of the dropoff case the day of the week hour price passenger id


ProjetRTaxeFare/TF documentation built on June 1, 2019, 4:02 a.m.