trackvisitsGetGroups: Groups Visits from Track Objects

Description Usage Arguments Value See Also Examples

View source: R/trackvisitsGetGroups.R

Description

trackvisitsGetGroups defines groups of visits at the same location based on (1) the duration between these visits, (2) the time of these visits and (3) whether there is a campsite in-between. Additionally, the variabe mergewithnext in the input trackvisits is defined, i.e. it is given advice on visits to merge.

Usage

1
2
3
4
5
6
7
trackvisitsGetGroups(
  trackvisits,
  tmin,
  timeinterval = 30 * 60,
  tmaxintersticenotvalid = NULL,
  tmaxinterstice
)

Arguments

trackvisits

An object of class trackvisits.

tmin

The minimum residence time at a specific location [s] which is used to classify visits as campsites (if the residence time at a specific location is larger than tmin) in contrast to short-term visits of locations. The default is tmin = 345600, i.e. 4 days.

timeinterval

The number of seconds one data value (row) in currenttrack covers.

tmaxintersticenotvalid

A data.frame object that defines time periods in which the argument tmaxinterstice will be ignored, i.e. visits at the same location are merged irrespective of the duration between these visits if there is no campsite visit at a different location in-between. Each row indicates a time period in which this should be valid. tmaxintersticenotvalid must contain two columns:

start

Represents the start time of the time interval.

end

Represents the end time of the time interval.

It is evaluated for each visit if its endtime (trackvisits$endtime) is within any of the time periods or the starttime (trackvisits$starttime) of the next visit at the same location.

tmaxinterstice

A numeric value giving the maximum duration of an interstice between two visits at the same location until which these visits are merged to one group if there is no campsite visit in-between.

Value

An object of class trackvisits.

See Also

trackvisits, plot.trackvisits, trackvisitsFromTrack, trackvisitsMergeGroups, trackvisitsSetNextvisitsamelocationindex, trackvisitsSetNorepeatedcampsitevisits.

Examples

1
#

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