Learn R Programming

Rssa (version 1.1)

summarize.gaps: Summarize Gaps in a Series

Description

Provide a summary about the gaps in a series given desired window length, namely whether the gap is internal or not, whether it is sparce or dense, etc.

Usage

# S3 method for 1d.ssa
summarize.gaps(x, L = NULL)
# S3 method for toeplitz.ssa
summarize.gaps(x, L = NULL)
# S3 method for cssa
summarize.gaps(x, L = NULL)
# S3 method for default
summarize.gaps(x, L)

Value

Object of type 'ssa.gaps': a list with entries which correspond to every window length. For each window length, entry is a list of gaps with their descriptions.

Arguments

x

SSA object

L

vector of window lengths, if missing or NULL, then all viable window lengths are considered

See Also

Rssa for an overview of the package, as well as, gapfill, igapfill, clplot,

Examples

Run this code
# Produce series with gaps
F <- co2; F[c(12, 100:200, 250)] <- NA
# Summarize the gaps
s <- ssa(F, L = 72)
g <- summarize.gaps(s, L = c(36, 72, 144))
# Print the results
print(g)
# Plot the proportion of complete lag-vectors
plot(g)

Run the code above in your browser using DataLab