> The caret package is so good, I am learning it, but one problem is that > nearZeroVar function can be used to identify near zero–variance variables and > it only identify, how can I remove those variables that were identify, > because I have many zero- or near zero- ones, it is not realistic to removel > it by hand, can this function can identify and removel those ones > automatically? >
newx <- x[, -nearZeroVar(x), drop = FALSE] should do it ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.