Learn R Programming

FlowScreen (version 1.2.6)

NA.runs: Missing data runs for daily time series.

Description

This function takes a data.frame from create.ts and returns a data.frame of missing data runs.

Usage

NA.runs(TS)

Arguments

TS

output from create.ts containing a data.frame of flow time series

Value

Returns a data.frame with the following columns:

  • Start - Date of the start of the missing data period

  • End - Date of the end of the missing data period

  • Duration - number of days in the missing data period

See Also

create.ts to create input, NA.sum to sum the the missing data occurrences by year or month.

Examples

Run this code
# NOT RUN {
data(caniapiscau)
cania.sub <- caniapiscau[300:1200,]
cania.ts <- create.ts(cania.sub)
res <- NA.runs(cania.ts)
# }

Run the code above in your browser using DataLab