Skip to content

Commit

Permalink
fix checking bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Devaux authored and Anthony Devaux committed Jan 30, 2024
1 parent 4b5034a commit 10a4db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/checking.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ checking <- function(DynForest_obj = NULL,
stop(paste0(idVar, " variable should be a numeric or integer object in 'Y$Y'!"))
}
if (Y$type=="surv"){
if (!inherits(Y$Y[,3], "numeric")){
if (!inherits(Y$Y[,3], c("numeric","integer"))){
stop("The column in 'Y$Y' to provide the causes should be typed as numeric with 0 indicating no event!")
}
}
Expand Down

0 comments on commit 10a4db5

Please sign in to comment.