Doubt when counting table elements in Chr format

Asked

Viewed 36 times

-1

How can I count the arrival airports if they are described in the table in format ?

I already used this code and did not get the expected result:

destino_frequente <- flights %>% 
        select(origin, dest) %>%
        arrange(desc(origin))

1 answer

1

I believe you can solve using dplyr Count:

flights %>% count(dest))

Browser other questions tagged

You are not signed in. Login or sign up in order to post.