MSKCC-Epi-Bio / bstfun

Miscellaneous collection of functions
http://mskcc-epi-bio.github.io/bstfun
Other
34 stars 23 forks source link

data date not being read correctly via here_data() #42

Closed MelissaAssel closed 3 years ago

MelissaAssel commented 3 years ago

data_date needs an added return line added to avoid the below error

example code for importing excel file

df_raw_data <-

  • readxl::read_excel(
  • path = here_data("JRSC_MaxPAIN_2021-7-26.xlsx")
  • ) %>%
  • janitor::clean_names(case = "all_caps") %>% # uppercase col names
  • mutate_if(lubridate::is.POSIXt, lubridate::as_date) # use lubridates Error: path must be a string