group_stad: Group temporal data by a specified time unit

Description Usage Arguments Value See Also Examples

View source: R/group_stad.R

Description

Average numeric values in a data set by day and/or by hour. This is intended to be applied to raw or otherwise high-frequency temporal data.

Usage

1
group_stad(dataset, by_day = TRUE, by_hour = FALSE)

Arguments

dataset

The data set for which to average

by_day

Logical; average data by day

by_hour

Logical; average data by hour

Value

Data frame with numeric values averaged by specified time stamp(s)

See Also

column_dt()

Other miscellaneous functions: adjust_timezone(), ambient_temperature(), apply_date_tags(), apply_hour_tags(), column_dt(), filter_df(), organize_stad(), rounding_w_zeroes(), unit_convert(), wrangle_meta()

Examples

1
2
3
4
group_stad(july_api_full)

group_stad(july_api_full, by_day = FALSE, by_hour = TRUE)
group_stad(july_api_full, by_day = TRUE, by_hour = TRUE)

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