We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a9aadfb + e077fd6 commit 474152fCopy full SHA for 474152f
R/predict.R
@@ -452,7 +452,7 @@ prepare_data <- function(object, new_data) {
452
} else if (translate_from_xy_to_formula) {
453
new_data <- .convert_xy_to_form_new(object$preproc, new_data)
454
} else if (translate_from_xy_to_xy) {
455
- new_data <- new_data[, object$preproc$x_names]
+ new_data <- new_data[, object$preproc$x_names, drop = FALSE]
456
}
457
458
encodings <- get_encoding(class(object$spec)[1])
0 commit comments