Skip to content

Commit

Permalink
debug to_be_tested
Browse files Browse the repository at this point in the history
  • Loading branch information
livioivil committed Sep 23, 2024
1 parent cfde632 commit 1f76861
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/flipscores.R
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,8 @@ flipscores<-function(formula, family, data,
if(is.null(to_be_tested))
to_be_tested=colnames(model[["x"]]) else
{
to_be_tested = ifelse(is.numeric(to_be_tested),
colnames(model[["x"]])[to_be_tested],
to_be_tested)
if(is.numeric(to_be_tested))
to_be_tested = colnames(model[["x"]])[to_be_tested]

to_be_tested=eval(to_be_tested,parent.frame())
}
Expand Down

0 comments on commit 1f76861

Please sign in to comment.