Description Usage Arguments Value See Also Examples
View source: R/adjust_timezone.R
Time zones are reported as a variable when downloading the data. Time stamps in PurpleAir data are reported in UTC. The following will convert the time stamps to said reported time zone. If more than one time zone is reported in the data, the conversion will use the time zone most frequently used in the data set. This is because no more than one time zone can be applied to a date time variable.
1 | adjust_timezone(dataset, location_data = raw_meta)
|
dataset |
The data set for which to convert timezone data (column: "datetime") |
location_data |
The data set containing information on the timezone (column: "timezone") to apply |
Dataset with a column of corrected time stamp ("datetime") and the original ("datetime_utc")
Other miscellaneous functions:
ambient_temperature()
,
apply_date_tags()
,
apply_hour_tags()
,
column_dt()
,
filter_df()
,
group_stad()
,
organize_stad()
,
rounding_w_zeroes()
,
unit_convert()
,
wrangle_meta()
1 | adjust_timezone(head(july_api_raw), location_data = july_api_raw_meta)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.