Description Usage Arguments Details Value See Also Examples
View source: R/locationsTracks.R
locationsTracks
identifies clusters (locations) of
points in GPS tracks (for all Track
objects (currenttrack
) in a
Tracks
object) using
locationsTrack
.
1 2 3 4 5 6 7 8 9 10 11 12 | locationsTracks(
currenttracks,
radius = 800,
tmin = 345600,
tmaxinterstices = 345600,
tmaxintersticenotvalid = data.frame(start = as.POSIXct("2016-01-01 00:00:00"), end =
as.POSIXct("2016-05-01 00:00:00")),
summary = TRUE,
night = c(16, 20),
cores = 1,
clcall = NULL
)
|
currenttracks |
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 |
tmaxintersticenotvalid |
A |
summary |
Logical value indicating if the information on the
locations and visits should be summarised ( |
night |
An integer vector with two elements:
|
cores |
An integer value representing the number of cores to use in parallel computing. |
clcall |
A function that is passed to
|
The function can be used in order to assign to each data
value of the Track
objects of the input Tracks
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
Tracks
object with
Track
objects that are identical
to the input Track
objects, but
have four additional columns in their data
slot:
location
An integer value for each identified spatial point cluster (location) increasing with the time starting from 1.
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
).
visitsloc
An integer vector indicating the number of visits at a specific location the data point is assigned to (i.e. a counter for the visits at a specific location).
visitscampsite
An integer vector indicating the number of visits at a specific location the data point is assigned to that are classified as long-term visits (campsites) (i.e. a counter for the long-term visits at a specific location).
Gaps, as indicated by the column gap
, have NA
values for
all four variables.
summary = TRUE
)A list of data.frame
objects summarising the locations and visits of the input
Track
objects with the following variables:
An integer value for each identified spatial point cluster (location) increasing with the time starting from 1.
The longitude of the respective location (as mean value of the coordinates of the data values assigned to the visit).
The latitude of the respective location (as mean value of the coordinates of the data values assigned to the visit).
The altitude of the respective location (as mean value of the coordinates of the data values assigned to the visit).
visitsloc
An integer vector indicating the number of visits at a specific location the data point is assigned to (i.e. a counter for the visits at a specific location).
A logical value indicating if a visits of a
location is classified as long-term visit (campsite) (TRUE
)
or as short-term visit (FALSE
).
visitscampsite
An integer vector indicating the number of visits at a specific location the data point is assigned to that are classified as long-term visits (campsites) (i.e. a counter for the long-term visits at a specific location).
A POSIXct
vector indicating the arrival time
of the visit at the respective location.
A POSIXct
vector indicating the departure
time of the visit from the respective location.
A numerical vector indicating the residence time of each visit [s].
The speed of the respective location (as mean value of the speed values of the data values assigned to the visit).
1 | #
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.