Skip to content

Commit

Permalink
[skip style] [skip vbump] Restyle files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 16, 2024
1 parent a277ed5 commit efe0dca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/testthat/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ level_reducer <- function(dt, variable, p_to_keep = 0.7,
checkmate::assert_character(add_specific_value, null.ok = TRUE)
checkmate::assert_choice(variable, names(dt))
checkmate::assert_integer(keep_spec_rows,
null.ok = TRUE,
lower = 1, upper = nrow(dt), unique = TRUE
null.ok = TRUE,
lower = 1, upper = nrow(dt), unique = TRUE
)
checkmate::assert_flag(explorative)
cur_vec <- dt[[variable]]
Expand Down Expand Up @@ -219,11 +219,11 @@ adae_pharmaverse <- pharmaverseadam::adae %>%
)
# adae_pharmaverse trimming of variables with too many levels
adae_pharmaverse <- level_reducer(adae_pharmaverse, "AEDECOD",
num_max_values = 7, num_of_rare_values = 1,
add_specific_value = c(
"VOMITING", "NAUSEA", "SKIN IRRITATION", "HEADACHE", # For SMQ01NAM, SMQ02NAM, CQ01NAM
"MYOCARDIAL INFARCTION" # for aet07 AESDTH == "Y"
)
num_max_values = 7, num_of_rare_values = 1,
add_specific_value = c(
"VOMITING", "NAUSEA", "SKIN IRRITATION", "HEADACHE", # For SMQ01NAM, SMQ02NAM, CQ01NAM
"MYOCARDIAL INFARCTION" # for aet07 AESDTH == "Y"
)
)

adeg_pharmaverse <- pharmaverseadam::adeg
Expand Down

0 comments on commit efe0dca

Please sign in to comment.