Skip to content

Commit

Permalink
clean prob_dist internally to resolve case sensitive matching, fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwlambert committed Sep 13, 2024
1 parent 1dd58f5 commit b6ae203
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/epiparameter.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ new_epiparameter <- function(disease = character(),
identical(names(prob_dist_params), names(uncertainty))
)

# set string to lowercase for downstream case sensitive matching of prob_dist
prob_dist <- ifelse(
test = is.character(prob_dist),
yes = .clean_string(prob_dist),
no = prob_dist
)

# TODO: formalise if statement below or remove
# include mean in prob_dist_params
if (!is.null(summary_stats$mean) && !is.na(summary_stats$mean) &&
Expand Down

0 comments on commit b6ae203

Please sign in to comment.