Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 24, 2024
1 parent 683fcb5 commit 7b09d03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/clean_names.R
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ clean_names.character <- function(x, include_names = FALSE, ...) {
# g <- c(g, .safe(all.vars(as.formula(paste0("~", trim_ws(gsub("weights\\s?=(.*)", "\\1", "weights = cbind(w, w)"))))))) # nolint
# }
# multimembership <- as.vector(trim_ws(g))
multimembership <- all.vars(stats::as.formula(paste("~", x[i])))
if (grepl(paste0("^", pattern[j], "\\((.*)\\).*"), x[i])) {
multimembership <- all.vars(stats::as.formula(paste("~", x[i])))
}
} else if (pattern[j] == "s" && startsWith(x[i], "s(")) {
x[i] <- gsub("^s\\(", "", x[i])
x[i] <- gsub("\\)$", "", x[i])
Expand Down

0 comments on commit 7b09d03

Please sign in to comment.