View source: R/gfNogapLength.R
| gfNogapLength | R Documentation | 
This is a function taken from Julendat to identify lengths of continuous measurements in (eco-)climatological measurement series.
gfNogapLength(gaps, data.dep, ...)
gaps | 
 A   | 
data.dep | 
 An object of class   | 
... | 
 Additional arguments. Currently not in use.  | 
A list containing start, end, and length of each continuous measurement.
Florian Detsch
gfGapLength
## Not run: 
moshi <- subset(gsodstations, `STATION NAME` == "MOSHI")
gsod_moshi <- dlGsodStations(usaf = moshi$USAF,
                             start_year = 1990, end_year = 1995,
                             dsn = tempdir(),
                             unzip = TRUE)
# Conversion to KiLi SP1 `ki.data` object
ki_moshi <- gsod2ki(data = gsod_moshi,
                    prm_col = c("TEMP", "MIN", "MAX"),
                    df2ki = TRUE)
# Identify length per data gap
gaps <- gfGapLength(data.dep = ki_moshi, 
                    pos.na = which(is.na(methods::slot(ki_moshi, "Parameter")$TEMP)), 
                    gap.limit = 365,
                    units = "days", 
                    end.datetime = Sys.Date())
# Identify lengths of continuous measurements
nogaps <- gfNogapLength(gaps = gaps, 
                        data.dep = ki_moshi)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.