2010-05-11 22:31:01| 分类: R&Bioconductor | 标签: |举报 |字号大中小 订阅
http://blog.sina.com.cn/s/blog_61f013b80100gekp.html
http://rbbs.biosino.org/Rbbs/posts/list/1073.page
How to Get the Function Code in R
R is “open-access”, so I can read and modify the function code for further application. And that is the reason I choose it, use it and love it.
But first, let’s explore how to get the function code.
1.
> fivenum
function (x, na.rm = TRUE)
{
}
<environment: namespace:stats>
2.
>qqnorm.default
# this is a visible function, a special case of 3 later.
3.
>t.test
function (x, ...)
UseMethod("t.test")
<environment: namespace:stats>
>methods(“t.test”)
# first, we should known the “methods” used.
>getAnywhere(“t.test.default”)
# get “t.test.default” code
4.
For more:
http://rbbs.biosino.org/Rbbs/posts/list/63.page#574#574
http://www.pinggu.org/bbs/b69i336419.html
http://cos.name/bbs/read.php?tid=1065
http://tel.pinggu.org/bbs/b69i456670p4.html
In addition, thanks for Dr. Ding’s prompt help and discussion about the “wilcox.test” function code in R.
评论