atl_thin_data: Thin tracking data by resampling or aggregation.

Description Usage Arguments Value

View source: R/fun_thin_data.R

Description

Thin tracking data by resampling or aggregation.

Usage

1
2
3
4
5
6
atl_thin_data(
  data,
  interval = 60,
  id_columns = NULL,
  method = c("resample", "aggregate")
)

Arguments

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.

Value

A dataframe aggregated taking the mean over the interval.


Orrslab/Pratik_atlastools documentation built on Dec. 31, 2020, 3:23 p.m.