How to see functions implemented in R packages

Posted by rinzy kutex on Stack Overflow See other posts from Stack Overflow or by rinzy kutex
Published on 2013-11-01T15:50:07Z Indexed on 2013/11/01 15:53 UTC
Read the original article Hit count: 190

Filed under:
|
|

How do I see the actual code for the functions implemented in R packaged. For instance I have loaded the caret package and I would like to see the code used for the function "createMultiFolds". I have gone to where the packages are stored but can't seem to find what I am looking for. For instance folders like Meta in the root folder of the caret package have files with the .rds extension which I can read into R with the gzfile command but I can't still seem to find what I am looking for i.e. the exact for the functions e.g. creatMultifolds. I would like to adapt some of these functions specifically to my research needs by make small changes to the codes to output the results in the way that I want without having to "re-invent the wheel"

I will be glad if someone can help me.

Thanks.

© Stack Overflow or respective owner

Related posts about r

    Related posts about function