[R] Overlapping parameters "k" in different functions in "ipred"

2009-04-24 Thread WilDsc0p
Dear List, I have a question regarding "ipred" package. Under 10-fold cv, for different knn ( = 1,3,...25), I am getting same misclassification errors: # library(ipred) data(iris) cv.k = 10 ## 10-fold cross-validation bwpredict.knn <- function(objec

[R] Extracting a function from a R package

2009-04-04 Thread WilDsc0p
Dear List, I typed > page(survival:::print.coxph, "print" ) and I got the respective codes. > page(MASS::lda, "print") gives me ### function (x, ...) UseMethod("lda") ### Is there any way I can get/extract the lda function from MASS? T