Description Usage Arguments Value Examples
View source: R/extractClustersBuffer.R
extractClustersBuffer
identifies clusters of points in GPS
tracks based on their spatial proximity. This is done by applying
density based clustering on all points within a specific daily time
interval (e.g. during night). Daytime data values are assigned to
the respective location id (1) if the next value after and prior the
daytime values (i.e. the last value of the previous night and the
first value of the following night) are identical (i.e. are defined
as gaps if both values are gaps or to a location id otherwise), then
(2) if the next value of the previous night is not a gap to the
respective location, and then (3) if the next value of the following
night is not a gap to the respective location. Therefore, results
reflect a daily resolution with respect to different locations.
1 | extractClustersBuffer(currenttrack, radius = 800)
|
currenttrack |
An object of class |
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 |
An integer vector with the same length as the number of points in
currenttrack
indicating to which cluster each point is assigned. Cluster
indices are not ordered, however points of trsSP
representing gaps
(as indicated by currenttrack$gap
) get the cluster index 0
.
1 | #
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.