Description Usage Arguments Details Value See Also Examples
View source: R/locationsTrack.R
locationsTrack
identifies clusters (locations) of
points in GPS tracks (Track
object) based on their spatial proximity using
extractClustersBuffer
and identifies individual
visits of the same cluster (location) along the track.
Additionally, visits are classified as long-term visits
(campsites) or short-term visits. During the identification of
clusters, data values within a user defined daily time interval
are considered. The remaining values are set to the next
location identified for the adjacent time intervals. This
procedure can be used in order to identify campsites by
assuming that a household has a campsite where it stayed
over night. If values outside the defined time interval
have a too far distance, they are classified as short-term
visit.
1 2 3 4 5 6 7 8 9 10 | locationsTrack(
currenttrack,
radius = 800,
tmin = 345600,
tmaxinterstices = 345600,
night = c(16, 20),
tmaxintersticenotvalid = data.frame(start = as.POSIXct("2016-01-01 00:00:00"), end =
as.POSIXct("2016-05-01 00:00:00")),
summary = TRUE
)
|
currenttrack |
A |
radius |
A numerical value representing the radius of the
buffers computed around each point [m] which are used for
clustering values to locations. Default is |
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 |
tmaxinterstices |
The maximum time between subsequent visits
at the same location in case of which the duration of these visits
will be added in order to classify both visits together as long-term
visit (campsite) or short-term visit, based on |
night |
An integer vector with two elements: The first element specifies
the start hour of the night, e.g. |
tmaxintersticenotvalid |
A
It is evaluated for each visit if its endtime ( |
summary |
Logical value indicating if the information on the
locations and visits should be summarised ( |
The function can be used in order to assign to each data
value of the input Track
object an id of the cluster it is assigned to (
summary = FALSE
) or to summarise the information
for each visit of a location (summary = TRUE
).
summary = FALSE
)A
Track
object that is identical
to the input Track
object, but
has five additional columns in the data
slot:
location
A numeric integer value for each identified spatial point cluster (location) increasing with the time starting.
visit
A numeric integer value for each identified visit increasing with the time starting.
campsite
A logical value indicating if a visits of a
location is classified as long-term visit (campsite) (TRUE
)
or as short-term visit (FALSE
).
norepeatedcampsitevisits
An integer vector indicating the number of campsites at a specific location the data point is assigned to until the current visit.
start
A logical vector indicating if a value represents the
first value of a visit (start = TRUE
) or not (start = FALSE
).
end
A logical vector indicating if a value represents the
last value of a visit (end = TRUE
) or not (end = FALSE
).
Gaps, as indicated by the column gap
, have NA
values for
location
, campsite
, norepeatedcampsitevisits
and FALSE
values for start
and end
.
summary = TRUE
)An object of class trackvisits
summarising the locations and visits for currenttrack
.
1 | #
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.