Hi all,
I'm learning R and I am confused regarding dplyr function desc vs. using a minus sign before the variable to sort data in desending order. I was exploring options and tried the code below and both worked. Thanks in advance for any guidance!!
hotel_bookings_city %>%
arrange(-lead_time)
and
hotel_bookings_city %>%
arrange(desc(lead_time))
BOTH WORKED!