Skip to content

Commit

Permalink
support multigroup
Browse files Browse the repository at this point in the history
  • Loading branch information
LiNk-NY committed Sep 25, 2024
1 parent 5d4e2e2 commit b12801b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions R/lefser.R
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,8 @@ lefser <-
classf <- colData(relab)[[classCol]]
classf <- as.factor(classf)
lclassf <- levels(classf)
if (is.null(classf) || !identical(length(lclassf), 2L)) {
msg <- "'classCol' must refer to a valid dichotomous (two-level) variable"
stop(msg) # ensure the class has only two levels
}
if (is.null(classf) || length(lclassf) < 2L)
stop("'classCol' must be a valid two or more level variable")
message(
"The outcome variable is specified as '", classCol,
"' and the reference category is '", lclassf[1],
Expand Down

0 comments on commit b12801b

Please sign in to comment.