Closed khotilov closed 7 years ago
E.g., this results in error:
> df <- data.frame(a=0:1, "b + c"=3:4, check.names=F) > FSelectorRcpp::information_gain(a ~ ., df) Error in `[.data.frame`(data, c(formula$x, formula$y)) : undefined columns selected
The problem comes from attr(terms(a ~ ., data=df), "term.labels") returning such column names enclosed in ` `
attr(terms(a ~ ., data=df), "term.labels")
` `
@zzawadz @krzyslom : O
@khotilov I think the easiest way is not to use such fancy names : )
fancy
E.g., this results in error:
The problem comes from
attr(terms(a ~ ., data=df), "term.labels")
returning such column names enclosed in` `