Description Usage Arguments Value Examples
Takes a points and calculates the number, total, mean and median time of visits inside a given distance of this point.
1 2 |
current_center |
spatialPoints on which visit calculations should be done |
radius |
radius for visit |
maxtime |
maximum time to consider relocation as successive and add time before first point and after last point proportional to the part of the segment inside the circle. |
time_out |
maximum time individuals are allowed to leave the circle without considering a new visit |
timecol |
name of spdf@data time column |
units |
unit used for maxtime and time_out |
proj4string |
projection string. Default UTM35S. |
spdf |
spatialPointsDataFrame with movement data. |
a named list with data.
1 | calc_visit(current_center, spdf ,radius = 500, maxtime = 5, time_out = 2, timecol = "dateTime", units = "hour", proj4string = "+proj=utm +zone=19 +datum=WGS84 +units=m +no_defs")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.