Skip to content

Commit

Permalink
#104 use input argument dataset, not column in input arg dat, as …
Browse files Browse the repository at this point in the history
…`dat` may or may not have the required `dataset` column.
  • Loading branch information
egouldo committed Aug 12, 2024
1 parent 7ce4e8c commit 7c0853f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/standardise_response.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,13 @@ standardise_response <- function(dat,
purrr::pmap(
list(
back_transformed_data,
params,
dataset
params
),
.f = ~ if (all(!rlang::is_na(..1), !rlang::is_na(..2))) {
pred_to_Z(
back_transformed_data = ..1,
params = ..2,
dataset = ..3)
dataset = dataset)
} else {
NA
}
Expand Down

0 comments on commit 7c0853f

Please sign in to comment.