aggregateTrack: Aggregates Tracks

Description Usage Arguments Value See Also Examples

View source: R/aggregateTrack.R

Description

aggregate.trackvisits temporally aggregates objects of class Track. Aggregation means that values of a Track object are aggregated temporally, e.g. from hourly to daily values. The function assumes that certain variables are present for the Track object, specifically location, group, altitude, gap, campsite, norepeatedvisits, start and end as defined in locationsTracks.

Usage

1
aggregateTrack(x, by = list(strftime(x@time, format = "%Y-%m-%d")))

Arguments

x

An object of class Track that has been processed with reorganizeTracks, fillGapTracksNight and locationsTrack, so that it contains the variables location, group, altitude, gap, campsite, norepeatedvisits, start and end. All other variables will be ignored.

by

A vector with grouping values for each data value in x corresponding to the time. This can be for example the day of each given POSIXct value in order to aggregate to daily values.

Value

The temporally aggregated x.

See Also

gapdurationnextcampsite_wos, gapdurationnextcampsite_wis, distancenextvisit_wis, distancenextvisit_wos, distancenextvisit_wis_campsite, altitudinaldistancenextvisit_wis, altitudinaldistancenextvisit_wos, altitudinaldistancenextvisit_wis_campsite.

Examples

1
#

henningte/herdersTA documentation built on Jan. 22, 2020, 5:16 a.m.