collect_crosses: Collects information about each cross in given object

Description Usage Arguments Value Methods (by class)

View source: R/avoidance-analysis.R

Description

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

Usage

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)

Arguments

obj

avoidance single or multiple object with areas added.

Value

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

Methods (by class)


hejtmy/fgu-avoidance documentation built on Sept. 19, 2021, 6:35 a.m.