Skip to content

Commit ed4275b

Browse files
dshemetovdsweber2
andauthored
Update R/new_epipredict_steps/step_yeo_johnson.R
Co-authored-by: David Weber <[email protected]>
1 parent 48f0100 commit ed4275b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/new_epipredict_steps/step_yeo_johnson.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ bake.step_epi_YeoJohnson <- function(object, new_data, ...) {
196196
# Check that the keys match.
197197
keys <- key_colnames(new_data, exclude = "time_value")
198198
old_keys <- object$lambdas %>% select(-starts_with(".lambda_")) %>% colnames()
199-
if (!identical(keys, old_keys)) {
199+
if (!all(keys %in% old_keys)) {
200200
cli::cli_abort(
201201
"The keys of the new data do not match the keys of the training data.",
202202
call = rlang::caller_fn()

0 commit comments

Comments
 (0)