Skip to content

Commit

Permalink
ignore interactions in name check
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Wright committed May 29, 2017
1 parent 98709fd commit 3bd74f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/formula.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ parse.formula <- function(formula, data) {
interaction_idx <- grepl(":", independent_vars)

## Error if illegal column name
if (!all(make.names(independent_vars) == independent_vars)) {
if (!all(make.names(independent_vars[!interaction_idx]) == independent_vars[!interaction_idx])) {
stop("Error: Illegal column names in formula interface. Fix column names or use alternative interface in ranger.")
}

Expand Down

0 comments on commit 3bd74f3

Please sign in to comment.