nbNoNAs: Calculate the number of dates without missing values per year...

Description Usage Arguments Value Author(s)

Description

For a daily or a monthly time series, calculate the number of days without missing values per year or per month

Usage

1
nbNoNAs(tsData, tstp = "years", hydroYear = NULL)

Arguments

tsData

[zoo] zoo object with the daily or monthly time series. The date format must be:

  • "%Y-%m-%d" for daily data

  • "%Y-%m-01" for monthly data

tstp

[character] indicate the period for the calculation. Could be:

  • "years": to calculate the number of days or months per year

  • "months": to calculate the number of days per month

  • "mPerY": to calculate the number of days per month per year

hydroYear

[character] vector of the translated years when calculating the number of dates per hydrological year (by default, calendar year: NULL)

Value

missV [zoo] zoo object with the annual or monthly computed time series of number of dates without missing values. The date is in the format: "%Y-MM-01", corresponding of the start of the year

Author(s)

Florine Garcia (florine.garcia@gmail.com)

Pierre L'Hermite (pierrelhermite@yahoo.fr)


flogrc/piflow documentation built on May 24, 2019, 7:34 a.m.