valid_observation_time: calculate valid observation time as sum of the length of all...

Description Usage Arguments Value Examples

View source: R/track.R

Description

calculate valid observation time as sum of the length of all valid tracks divided by the sum of the length of all tracks

Usage

1
valid_observation_time(tracks, min_path_length = 19)

Arguments

tracks

data frame with track objects

min_path_length

minimum length of a valid track

Value

valid_observation_time

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 data <- tibble::tibble(
   Metadata_timePoint = c(1:5),
   Location_Center_X = c(1, 2, 3, 4, 5),
   Location_Center_Y = c(1, 1, 1, 1, 1),
   TrackObjects_Label = c(rep(1, 5))
 )
 data <- dplyr::group_by_(data, "TrackObjects_Label")
 tracks <- migrationminer::track(data, "TrackObjects_Label")
 min_path_length <- 5
 vot <-   migrationminer::valid_observation_time(tracks, min_path_length)

cells2numbers/neutrominer documentation built on May 3, 2019, 9:04 p.m.