R/Reorder.R

# Figures

Reorder <- function(dat, fun) {
  dat_new <- dat
  dat_new$continent <- dat %>% with(reorder(continent, gdpPercap, fun))
  dat_new
}
zliu392/Package627 documentation built on May 4, 2019, 11:24 p.m.