I am working on "Reweighted Kernel Density Estimation". I couldn't find any package in R for "weighted bivariate density estimation. That's why I am going to modify availabe univariate packages. But I don't know how to access to source code for those packages. Please let me know how do that.
我正在研究“重新加权的内核密度估计”。在R中,我找不到任何“加权双变量密度估计”的包。这就是为什么我要修改availabe univariate包。但是我不知道如何访问这些包的源代码。请告诉我怎么做。
2 个解决方案
#1
2
All source files can be found on CRAN: http://cran.r-project.org/web/packages/
所有源文件都可以在CRAN上找到:http://cran.r-project.org/web/packages/
You are looking for the tar.gz archive.
你在找焦油。广州档案。
#2
2
You can also type the function you are interested in modifying's name into the R console without parentheses. That will give you the code, but most even halfway complicated packages use either S3 or S4 classes/methods, so you'll need to know more about those to extend them properly.
您还可以在没有括号的情况下将感兴趣的函数输入到R控制台。这将为您提供代码,但是大多数甚至是一半复杂的包都使用S3或S4类/方法,因此您需要了解更多这些方法才能正确地扩展它们。
#1
2
All source files can be found on CRAN: http://cran.r-project.org/web/packages/
所有源文件都可以在CRAN上找到:http://cran.r-project.org/web/packages/
You are looking for the tar.gz archive.
你在找焦油。广州档案。
#2
2
You can also type the function you are interested in modifying's name into the R console without parentheses. That will give you the code, but most even halfway complicated packages use either S3 or S4 classes/methods, so you'll need to know more about those to extend them properly.
您还可以在没有括号的情况下将感兴趣的函数输入到R控制台。这将为您提供代码,但是大多数甚至是一半复杂的包都使用S3或S4类/方法,因此您需要了解更多这些方法才能正确地扩展它们。