NA.sum: Sum missing data points from a daily time series

Description Usage Arguments Value Author(s) See Also Examples

View source: R/NA.sum.r

Description

Counts the number of missing data points by calendar year, hydrologic year, or month

Usage

1
NA.sum(input, by = "hyear", hyrstart = 1)

Arguments

input

output from NA.runs

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

NA.runs

Examples

1
2
3
4
5
data(caniapiscau)
cania.sub <- caniapiscau[300:1200,]
cania.ts <- create.ts(cania.sub)
res <- NA.runs(cania.ts)
res2 <- NA.sum(res)

FlowScreen documentation built on May 2, 2019, 1:09 p.m.