Using R to coding. Only need answers. About NYC Taxi Data This data contains a s

Using R to coding. Only need answers.
About NYC Taxi Data
This data contains a s

Using R to coding. Only need answers.
About NYC Taxi Data
This data contains a subset of NYC taxi trips for April 2022. The goal of this assignment is to examine the factors that influence the size of the tip (tip_amount) a taxi driver receives.
Variables
trip_id: Unique identifier for each trip
trip_duration: Duration of trip in minutes
trip_distance: Distance of trip in miles
passenger_count: Number of passengers
fare_amount: Fare calculated by the meter. This does not include tolls, surcharges or tips.
tolls_amount: Amount of all tolls paid in trip
tip: whether the taxi driver received a Tip or No Tip
tip_amount: tip paid
period_of_day: Time of day for pickup: morning, afternoon, evening, night
pickup_date: Date of month for pickup
period_of_month: Period of month when the trip occurred: beginning, middle, end
pickup_day: Day of week for trip: Mon, Tue, Wed, Thu, Fri, Sat, Sun
pickup_hour: Hour of day for pickup
pickup_min: Minute of day for pickup
pickup_sec: Second of day for pickup
pickup_time: Pick up date and time
dropoff_time: Drop off date and time