Description Usage Arguments Value
View source: R/fun_thin_data.R
Thin tracking data by resampling or aggregation.
1 2 3 4 5 6 | atl_thin_data(
data,
interval = 60,
id_columns = NULL,
method = c("resample", "aggregate")
)
|
data |
Cleaned data to aggregate. Must have a numeric column named time. |
interval |
The interval in seconds over which to aggregate. |
id_columns |
Column names for grouping columns. |
method |
Should the data be thinned by subsampling or aggregation. If resampling, the first position of each group is taken. If aggregation, the group positions' mean is taken. |
A dataframe aggregated taking the mean over the interval.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.