Skip to content

Commit

Permalink
fixed stupid newly introduced bug (it's too late...)
Browse files Browse the repository at this point in the history
  • Loading branch information
hofnerb committed Jan 26, 2017
1 parent 2edc5a6 commit 1c123af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ predict.mboost <- function(object, newdata = NULL,
nm <- rownames(newdata)
if (is.null(newdata))
nm <- object$rownames
if (length(pr == 1) && length(nm) != length(pr))
if (length(pr) == 1 && length(nm) != length(pr))
nm <- NULL
if (is.list(pr)){
RET <- lapply(pr, .predictmboost, y = object$response,
Expand Down Expand Up @@ -274,7 +274,7 @@ predict.glmboost <- function(object, newdata = NULL,
nm <- rownames(newdata)
if (is.null(newdata))
nm <- object$rownames
if (length(pr == 1) && length(nm) != length(pr))
if (length(pr) == 1 && length(nm) != length(pr))
nm <- NULL
if (is.list(pr))
return(lapply(pr, .predictmboost, y = object$response,
Expand Down

0 comments on commit 1c123af

Please sign in to comment.