Skip to content

Commit

Permalink
fixed join in butterfly_plot()
Browse files Browse the repository at this point in the history
improves on #2
  • Loading branch information
DanChaltiel committed Sep 23, 2024
1 parent 25f417a commit 8d93f45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/ae_table_soc.R
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ butterfly_plot = function(
mutate(severe_ = if(is.null(severe)) NA else severe_)
df_enrol = df_enrol %>%
select(subjid_=any_of2(subjid), arm_=any_of2(arm))
df = df_ae %>%
left_join(df_enrol, by="subjid_") %>%
df = df_enrol %>%
left_join(df_ae, by="subjid_") %>%
filter(!is.na(soc_)) %>%
arrange(subjid_)

Expand Down

0 comments on commit 8d93f45

Please sign in to comment.