Question: cant figure out this code of R, keep getting this error when i use drop_na, do i need to download a certain package ? ####

cant figure out this code of R, keep getting this error when i use drop_na, do i need to download a certain package ? cant figure out this code of R, keep getting this error when

\#\#\#\# Step 9) (10 points) Starting with data set NYC, find the number of flights for which both the departure delay and arrival delay are available (call this column Flights with both_delay_info), the number of flights which left late but arrived early this Left_late_but_arrived_early), and calculate the percent that fe11 into this category Percent. Steps needed: * drop_naO; remove flights with missing dep_delay and missing arr_delay. * summarise; create three columins inside of the summarise command to find: * the total number of flights with the delay information (Flights_with_both_delay_info * a11 flights with a departure delay greater than 0 and an arrival delay less than 0 (Left_late_but_arrived_early). Hint: use sum() with the correct logical operator ( &,=, or 1) to specify this compound condition. * Percent=Left_late but_arrived_early/Flights_with_both_delay_info* 100 . * If done correctly, there wi17 be 327,346 flights with this info available, 33,521 wi11 have left late but arrived early, and the percent will be 10.2% {r} NYC %>% drop_na(dep_delay,arr_delay) %>% summarise( Flights_with_both_delay_info =n0, Left_late but_arrived_early = sum(dep_delay >0 \& arr_delay

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!