calc_visit: Calculation of visits around a point.

Description Usage Arguments Value Examples

View source: R/calc_visit.R

Description

Takes a points and calculates the number, total, mean and median time of visits inside a given distance of this point.

Usage

1
2
calc_visit(current_center, sfdf, radius = NULL, maxtime = NULL,
  time_out = NULL, timecol = NULL, units = NULL, proj4string = NULL)

Arguments

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.

Value

a named list with data.

Examples

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")

rpatin/mapvisit documentation built on May 14, 2019, 9 a.m.