Description Usage Arguments Value Methods (by class)
View source: R/avoidance-analysis.R
The function calculates crosses from each of the default areas
definined in the object except the central area. The central area is considered
a "buffer" - if an animal enters only the central area, cross is NOT counted.
The areas need to be added during the preprocessing and area generally automatically
added with load_data
. If you need to define your own areas you
can do so using the add_areas
function.
In case you want to use different then the default areas, you either need to define your own or just use the 'get_area_visits' from the 'navr' package, which this function uses under the hood
1 2 3 4 5 6 7 | collect_crosses(obj)
## S3 method for class 'avoidance.multiple'
collect_crosses(obj)
## S3 method for class 'avoidance.single'
collect_crosses(obj)
|
obj |
avoidance single or multiple object with areas added. |
dataframe with *from, to, time, index* columns. From defines which area was the cross from, to which area it was made to. Time is the time of the cross and index is the index in the position data
avoidance.multiple
: calculates all the crosses for all the animals in the
object.
avoidance.single
: calculates the crosses for the animal. Wrapper around
the navr::get_area_visits
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.