[R] R: function code

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Apr 11 13:03:59 CEST 2005


Clark Allan wrote:

> HI
> 
> sorry to be a nuisance to all!!!
> 
> how can i see the code of a particular function?
> 
> e.g. nnet just as an example

Most easily by downloading the package sources and looking in the R 
directory.

Or in the console:

  library(nnet)
  nnet
  methods(nnet)
  nnet.formula
  nnet.default
  nnet:::predict.nnet

and so on ...


Uwe Ligges



> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> 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




More information about the R-help mailing list