R - no documentation for .fill_short_gaps

南楼画角 提交于 2019-12-24 22:33:26

问题


I was looking at the R source codes for the zoo package (who many functions are extremely useful). I noticed a function .fill_short_gaps used quite a lot, but I can't find any documentation for this either in the zoo source codes or in the base source codes.

Is this an internal function? What is this function supposed to do?


回答1:


It's an internal function. A checkin comment on version 661 of the source file says "Use base R coding style convention for internal non-exported functions: .fill_short_gaps() instead of fillShortGaps()."

I found the source on r-forge: http://r-forge.r-project.org/scm/viewvc.php/pkg/zoo/R/na.approx.R?view=markup&root=zoo

.fill_short_gaps() is at the bottom of that file.

Since the function was renamed recently, you should make sure that all of the libraries that you're using that reference it are using a compatible version of zoo.



来源:https://stackoverflow.com/questions/20709929/r-no-documentation-for-fill-short-gaps

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!