Re: [R] reading svm function in e1071

2004-12-16 Thread Roger D. Peng
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]]
__
[EMAIL PROTECTED] 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/
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


RE: [R] reading svm function in e1071

2004-12-16 Thread Liaw, Andy
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]]
 
 __
 [EMAIL PROTECTED] mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! 
 http://www.R-project.org/posting-guide.html
 


__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html