View source: R/preproc_audit_data.R
preproc_audit_data | R Documentation |
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.
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"
)
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 |
Year grouping is commonly water year, climate year, or calendar year.
A data.frame with year_group
, count (n, excluding NA
values)
of days in each year_group
, and a complete years 'boolean' flag.
preproc_fill_daily
, preproc_precondition_data
preproc_audit_data(
data = example_preproc, Date = "Date", value = "value", year_group = "WY"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.