adjust_timezone: Adjust timezone

Description Usage Arguments Value See Also Examples

View source: R/adjust_timezone.R

Description

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.

Usage

1
adjust_timezone(dataset, location_data = raw_meta)

Arguments

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

Value

Dataset with a column of corrected time stamp ("datetime") and the original ("datetime_utc")

See Also

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()

Examples

1
adjust_timezone(head(july_api_raw), location_data = july_api_raw_meta)

gmcginnis/AirVizR documentation built on Dec. 20, 2021, 11:49 a.m.