trying to run the following code based on my data set, I have to set factors based on specific dates in my data set
MergedData %>%
and I end up with this error and im super stuck
Error in mutate():
! Problem while computing new_var = case_when(...).
Caused by error in case_when():
! LHS of case 1 (date ~ "2008-09-15") must be a logical vector, not a formula object.
Backtrace:
- MergedData %>% ...
- dplyr::case_when(...)