extrobe
2/4/2017 - 6:42 PM

DPLYR Examples

DPLYR Examples

hflights %>%
  filter(!is.na(ArrDelay),ArrDelay > 0) %>%
  group_by(UniqueCarrier) %>%
  summarise(avg = mean(ArrDelay)) %>%
  mutate(rank = rank(avg)) %>%
  arrange(rank)