Description Usage Arguments Value See Also Examples
View source: R/apply_functions.R
Average a dataset by specified time stamp groupings, apply correction factors (using apply_corrections, which uses apply_epa and apply_lrapa), and tag dates/hours (apply_date_tags and apply_hour_tags, respectively) as appropriate.
1 2 3 4 5 6 7 | apply_functions(
dataset,
by_day = TRUE,
by_hour = FALSE,
tag_dates = run_date_grouping,
tag_hours = run_hour_grouping
)
|
dataset |
The dataset for which to apply the date tags to. |
by_day |
Logical; Average by day |
by_hour |
Logical; Average by hour |
tag_dates |
Logical; Apply date tags |
tag_hours |
Logical; Apply hour tags |
Dataframe with new columns for corrected values and appropriate tagged values ("date_tag" and "hour_tag") containing the appropriate hour/date tag with respect to each row's timestamp.
apply_date_tags()
and apply_hour_tags()
Other PA functions:
apply_corrections()
,
apply_epa()
,
apply_lrapa()
,
apply_qc()
1 | apply_functions(july_api_full, by_day = TRUE, tag_dates = FALSE, tag_hours = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.