Skip to content

Commit

Permalink
Update R-package/R/xgboost.R
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Mayer <[email protected]>
  • Loading branch information
david-cortes and mayer79 authored Jun 29, 2024
1 parent 970abf5 commit e5fbec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R-package/R/xgboost.R
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ process.y.margin.and.objective <- function(

if (is.character(y)) {
if (!is.vector(y)) {
if (NCOL(y) > 1) {
if (NCOL(y) > 1L) {
stop("Multi-column categorical 'y' is not supported.")
}
y <- as.vector(y)
Expand Down

0 comments on commit e5fbec6

Please sign in to comment.