Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top