Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top