Skip to content

Commit

Permalink
fix: added more backticks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralayax committed Mar 26, 2024
1 parent 3cfc34d commit e357679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/sampler.R
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ sampler.univ <- function(data, r, where, pred, formula, method, yname, k,
vars <- colnames(data)[pred != 0]
xnames <- setdiff(vars, j)
if (length(xnames) > 0L) {
formula <- reformulate(backticks(xnames), response = j)
formula <- reformulate(backticks(xnames), response = backticks(j))
formula <- update(formula, ". ~ . ")
} else {
formula <- as.formula(paste0(j, " ~ 1"))
Expand Down

0 comments on commit e357679

Please sign in to comment.