Combining mutate, across, and as_date('yyyymmdd') results in all NA
I’m trying to combine mutate, across, and as_date, including the format argument in as_date. This is resulting in all NA values, as shown below. library(tidyverse) library(tis) holidays(2023) %>% data.frame() %>% set_names(‘holiday_date’) %>% rownames_to_column() %>% pivot_wider(names_from = rowname,values_from = holiday_date) %>% mutate(across(everything(), as.character)) %>% mutate(across(everything(), #as_date # WORKS ~as_date(.,format="yyyymmdd") # DOESN’T WORK )) This results in… Read More Combining mutate, across, and as_date('yyyymmdd') results in all NA