Skip to content

Commit

Permalink
better checks
Browse files Browse the repository at this point in the history
  • Loading branch information
DanChaltiel committed Nov 21, 2024
1 parent 218f326 commit 7f65562
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/ae_table_soc.R
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,10 @@ butterfly_plot = function(
arm="ARM", subjid="SUBJID", soc="AESOC"
){
check_dots_empty()
sort_by = arg_match(sort_by)

assert_not_null(df_ae, df_enrol, sort_by, subjid, soc)
assert_names_exists(df_ae, lst(subjid, soc, severe))
assert_names_exists(df_enrol, lst(subjid, arm))
assert_not_null(df_ae, df_enrol, sort_by, subjid, soc)
sort_by = arg_match(sort_by)

df_ae = df_ae %>%
select(subjid_=any_of2(subjid), soc_=any_of2(soc),
Expand Down

0 comments on commit 7f65562

Please sign in to comment.