Description Usage Arguments Value
View source: R/fun_make_res_patch.R
atl_res_patch
clusters positions into residence patches.
The function expects a specific organisation of the data: there should be
at least the following columns, x
, y
, time
, and
id
, all named in lower case, and corresponding to the coordinates,
timestamp in the UNIX format (seconds since 1970), and the identity of the
tracked individual.
1 2 3 4 5 6 7 8 9 | atl_res_patch(
data,
buffer_radius = 10,
lim_spat_indep = 100,
lim_time_indep = 30,
min_fixes = 3,
summary_variables = c(),
summary_functions = c()
)
|
data |
A dataframe of values of any class that is or extends data.frame.
The dataframe must contain at least two spatial coordinates, |
buffer_radius |
A numeric value specifying the radius of the buffer to be considered around each coordinate point. May be thought of as the distance that an individual can access, assess, or otherwise cover when at a discrete point in space. |
lim_spat_indep |
A numeric value of time in minutes of the time difference between two patches for them to be considered independent. |
lim_time_indep |
A numeric value of distance in metres of the spatial distance between two patches for them to the considered independent. |
min_fixes |
The minimum number of fixes for a group of spatially-proximate number of ponts to be considered a preliminary residence patch. |
summary_variables |
Optional variables for which patch-wise summary values are required. To be passed as a character vector. |
summary_functions |
The functions with which to summarise the summary variables; must return only a single value, such as median, mean etc. To be passed as a character vector. |
A data.frame extension object. This dataframe has the added column
patch
and patchdata
, indicating the patch identity and the
data used to construct the patch. In addition, there are columns with patch
summary variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.