NA.sum {FlowScreen} | R Documentation |
Sum missing data points from a daily time series
Description
Counts the number of missing data points by calendar year, hydrologic year, or month
Usage
NA.sum(input, by = "hyear", hyrstart = 1)
Arguments
input |
output from |
by |
character string identifying the time period to summarize by. Defaults is hydrologic year ("hyear"), other choices are "year" and "month". The "month" option will return the number of missing data points for each month in the time series. |
hyrstart |
optional argument, define start month of hydrologic year |
Value
Returns a numeric vector of the number of missing observations per summary period. The "times" attribute of the returned vector provides the corresponding year, hyear, or month.
Author(s)
Jennifer Dierauer
See Also
Examples
data(caniapiscau)
cania.sub <- caniapiscau[300:1200,]
cania.ts <- create.ts(cania.sub)
res <- NA.runs(cania.ts)
res2 <- NA.sum(res)
[Package FlowScreen version 1.2.6 Index]