Skip to content

Commit

Permalink
Initialise Change_Value to string, otherwise it can default to logica…
Browse files Browse the repository at this point in the history
…l and fail when only one parameter is changed.
  • Loading branch information
Luke-Symes-Tsy committed May 6, 2024
1 parent 2d71867 commit a9bed93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/app_utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ get_parameter_changes <- function(params_list) {
params_list_str[, Parameter := factor(Parameter, levels = unique(Parameter))]

# Calculate all sequential changes
params_list_str[, Change_Value := ""] # Initialise to string type
params_list_str[, Change_Value := ifelse(Value == shift(Value), NA, Value), by = Parameter]

changes <- dcast(
Expand Down

0 comments on commit a9bed93

Please sign in to comment.