Dplyr Desc vs. minus sign... when to use??

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 %>%
hotel_bookings_city %>%

Yes, both works. I usually use the minus sign, but it's a personal preference

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.