We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error:
Error in left_join(): ! Can't join x$atc_code with y$atc_code due to incompatible types. ℹ x$atc_code is a . ℹ y$atc_code is a .
left_join()
x$atc_code
y$atc_code
Possible reason:
radar/global.R Lines 105 to 113 in df1df23 antimicrobials <- antimicrobials %>% mutate(ab_days = as.integer(ab_stop_date - ab_start_date), ab_timing = as.integer(ab_start_date - adm_start_date), ddd_per_prescription = ddd_per_day*ab_days) %>% left_join( AMR::antibiotics %>% select( atc_code = atc, ab_type = name, ab_group = atc_group2 ), by = "atc_code") %>%
radar/global.R
Lines 105 to 113 in df1df23
typeof(AMR::antibiotics$atc) [1] "list"
The text was updated successfully, but these errors were encountered:
After unnest AMR::antibiotics, it works now
antimicrobials <- antimicrobials %>% mutate(ab_days = as.integer(ab_stop_date - ab_start_date), ab_timing = as.integer(ab_start_date - adm_start_date), ddd_per_prescription = ddd_per_day*ab_days) %>% left_join( AMR::antibiotics %>% select( atc_code = atc, ab_type = name, ab_group = atc_group2 ) %>% unnest(atc_code), by = "atc_code") %>%
Sorry, something went wrong.
No branches or pull requests
Error:
Possible reason:
The text was updated successfully, but these errors were encountered: