[R] Extracting a function from a R package

WilDsc0p wildscop at yahoo.com
Sat Apr 4 23:34:44 CEST 2009


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")
<environment: namespace:MASS>
###############################

Is there any way I can get/extract the lda function from MASS?

Thanks for your attention.

> R.Version()
$platform "i386-pc-mingw32"
$arch "i386"
$os "mingw32"
$system "i386, mingw32"
$status ""
$major "2"
$minor "8.1"
$year "2008"
$month "12"
$day "22"
$`svn rev` "47281"
$language "R"
$version.string "R version 2.8.1 (2008-12-22)"




More information about the R-help mailing list