Displaying 1 result from an estimated 1 matches for "basicvar".
Did you mean:
basicvars
2009 Feb 05
0
no visible binding for global variable
...or
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 global environment.
Also, the package has a file splsda.R that has the message
"splsda.default: no visible binding for global variable 'ncomp'". The
oddness o...