Skip to content

Commit 22d2663

Browse files
committed
Add missing package refs
1 parent 7b2f730 commit 22d2663

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/Date_manager.r

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ get_years_from_to <- function(data, config) {
2929
#' @export
3030
year_parser <- function(data, year_column_name) {
3131
date_formats <- c("Y", "y", "ymd", "mdy", "dmy", "Ymd", "mdY", "dmY")
32-
year_col <- sym(year_column_name)
32+
year_col <- rlang::sym(year_column_name)
3333
data <- data %>%
3434
dplyr::mutate(!!year_col := lubridate::parse_date_time(!!year_col,
3535
orders = date_formats,
3636
quiet = TRUE)) %>%
37-
dplyr::mutate(!!year_col := year(!!year_col)) %>%
37+
dplyr::mutate(!!year_col := lubridate::year(!!year_col)) %>%
3838
dplyr::mutate(!!year_col := as.numeric(!!year_col))
3939
return(data)
4040
}

0 commit comments

Comments
 (0)