R/plot_month.R

Defines functions plot_month

Documented in plot_month

#' Create Plot Month
#'
#' @param month_field Date field in data frame
#'
#' @return Factor field in data frame
#' @export
#'
plot_month <- function(month_field) {
  forcats::fct_reorder(format(month_field, "%b '%y"), month_field)
}
kmeakinmbta/opmitools documentation built on Oct. 25, 2023, 10:34 a.m.