Description Usage Arguments Value See Also Examples
View source: R/organize_stad.R
Choose to combine multiple STAD data sets, and/or pivot columns. Useful for combining FRM and PA data frames, or pivoting columns of the same pollutant type.
1 2 3 4 5 6 7 | organize_stad(
dataset,
measurements,
col_rename,
keep_cols = FALSE,
drop_missing = TRUE
)
|
dataset |
Dataset(s) to pivot. If more than one data set is provided, they will be row-bound. Use |
measurements |
Character, optional. Column headers to pivot. Use |
col_rename |
Character, optional, only run if |
keep_cols |
Logical, only run if |
drop_missing |
Logical, only run if |
Data set.
Other miscellaneous functions:
adjust_timezone()
,
ambient_temperature()
,
apply_date_tags()
,
apply_hour_tags()
,
column_dt()
,
filter_df()
,
group_stad()
,
rounding_w_zeroes()
,
unit_convert()
,
wrangle_meta()
1 2 3 4 5 6 | # Pivot columns of a similar pollutant:
head(organize_stad(july_api_daily, c(pm25_epa_2021, pm25_epa_2020, pm25_lrapa), "pm25"))
# Combine PA and FRM data:
head(organize_stad(list(july_api_daily, july_frm_daily), c(pm25_epa_2021, pm25_frm)))
# Combine meta data:
tail(organize_stad(list(july_api_meta, july_frm_meta)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.