search for: hasterm

Displaying 1 result from an estimated 1 matches for "hasterm".

Did you mean: hashterm
2009 Feb 05
0
no visible binding for global variable
...as that "The result is an approximation"). Here are two examples of from the caret package: This function get the message "predictors.gbm: no visible binding for global variable 'rel.inf'" predictors.gbm <- function(x, ...) { library(gbm) varList <- if(hasTerms(x)) predictors(x$terms) else colnames(x$data$x.order) relImp <- summary(x, plotit = FALSE) varUsed <- as.character(subset(relImp, rel.inf != 0)$var) basicVars(varList, varUsed) } So it didn't take the context into account that subset isn't (necessarily) looking in the...