R/split_ct_period.R

#' Split the Period variable in the CT data into month and year
split_ct_period <- function(.data) {
  .data %>% 
    mutate(Year = as.integer(str_sub(Period, 1,4)),
           Month = as.integer(str_sub(Period, 5,6)))
}
EBukin/tradeAnalysis-pack documentation built on May 23, 2019, 8:25 p.m.