preproc_audit_data {HyMETT} | R Documentation |
Audit daily data for total days in year
Description
Audit daily data for total days in year. An audit is performed to inventory and flag missing days in daily data and help determine if further analyses are appropriate.
Usage
preproc_audit_data(
data = NULL,
Date,
value,
year_group,
use_specific_years = FALSE,
begin_year = NULL,
end_year = NULL,
days_cutoff = 360,
date_format = "%Y-%m-%d"
)
Arguments
data |
'data.frame'. Optional data.frame input, with columns containing |
Date |
'Date' or 'character' vector when |
value |
'numeric' vector when |
year_group |
'numeric' vector when |
use_specific_years |
'boolean' value. Flag to clip data to a certain set of years in
|
begin_year |
'numeric' value. If |
end_year |
'numeric' value. If |
days_cutoff |
'numeric' value. Designating the number of days required for a year to be
counted as full. Default is |
date_format |
'character' string. Format of Date. Default is |
Details
Year grouping is commonly water year, climate year, or calendar year.
Value
A data.frame with year_group
, count (n, excluding NA
values)
of days in each year_group
, and a complete years 'boolean' flag.
See Also
preproc_fill_daily
, preproc_precondition_data
Examples
preproc_audit_data(
data = example_preproc, Date = "Date", value = "value", year_group = "WY"
)