[R] Source code of rnorm, where can I find it?
Ista Zahn
izahn at psych.rochester.edu
Wed Feb 2 20:50:48 CET 2011
R source is available on CRAN, e.g.,
http://cran.r-project.org/src/base/R-2/R-2.12.1.tar.gz
Many functions can be displayed simply by typing theme , e.g.,
> methods(mean)
[1] mean.data.frame mean.Date mean.default mean.difftime
[5] mean.POSIXct mean.POSIXlt
> mean.default
Many other functions are net exported (methods() will mark these with
an asterisk), but can be retrieved using
getAnywhere("fun")
.Internal functions such as rnorm cannot be retrieved in this way as
far as I know. You may have to download the source and find it
direclty.
Best,
Ista
On Wed, Feb 2, 2011 at 12:44 PM, Cristiano Strieder <cstrieder at gmail.com> wrote:
> Hi all,
>
> I want to check the source code of common functions available on R
> prompt. For example rnorm, where can I find the source code of that?
>
> --
> Cristiano Strieder
> São José dos Campos - SP
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org
More information about the R-help
mailing list