You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@joshwlambert we have come across this issue before and not sure how to fix it...
i.e. if no contacts have vaccines, an error is thrown when you try to run
after i added at least 1 vaccine to a contact, it ran fine, but before i got this error:
> contacts_vacc_history_clean <- clean_contact_vax_history(contacts,language_tokens)
Error in `tbl_at_vars()`:
! Can't subset columns that don't exist.
✖ Column `vaccinesreceived_date` doesn't exist.
Run `rlang::last_trace()` to see where the error occurred.
it may not be always evident to the analyst what the data contains etc - so is there a way to insert into some of these functions as a safeguard that if there is no data, just proceed with an empty data frame or skip that function and move to the next?
@joshwlambert we have come across this issue before and not sure how to fix it...
i.e. if no contacts have vaccines, an error is thrown when you try to run
cases_vacc_history_clean <- clean_case_vax_history(cases,language_tokens)
after i added at least 1 vaccine to a contact, it ran fine, but before i got this error:
it may not be always evident to the analyst what the data contains etc - so is there a way to insert into some of these functions as a safeguard that if there is no data, just proceed with an empty data frame or skip that function and move to the next?
cc @jamesfuller-cdc
The text was updated successfully, but these errors were encountered: