Hi, If I try to read the codes of functions in e1071 package, it gives me following error message.>library(e1071)> svmfunction (x, ...) UseMethod("svm") <environment: namespace:e1071>> predict.svmError: Object "predict.svm" not found>Can someone help me on this how to read the codes of the functions in the e1071 package? Thanks. Raj [[alternative HTML version deleted]]
It's in the R FAQ. Try getAnywhere("predict.svm"). Andy> From: Rajdeep Das > > Hi, > > If I try to read the codes of functions in e1071 package, it > gives me following error message. > > >library(e1071) > > > svm > function (x, ...) > UseMethod("svm") > <environment: namespace:e1071> > > > predict.svm > Error: Object "predict.svm" not found > > > > Can someone help me on this how to read the codes of the > functions in the e1071 package? > > Thanks. > > > Raj > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > >
The predict method for class `svm' is hidden in a namespace. Try getS3method("predict", "svm") -roger Rajdeep Das wrote:> Hi, > > If I try to read the codes of functions in e1071 package, it gives me following error message. > > >>library(e1071) > > >>svm > > function (x, ...) > UseMethod("svm") > <environment: namespace:e1071> > >>predict.svm > > Error: Object "predict.svm" not found > > > Can someone help me on this how to read the codes of the functions in the e1071 package? > > Thanks. > > > Raj > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >-- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/