event_length: Calculates event length and timing

View source: R/event_length.R

event_lengthR Documentation

Calculates event length and timing

Description

This sub-routine will take vectors from a data frame for a single individual and phenophase and returns the timing of phenophases and the length of the phenophase

Usage

event_length(
  data = data,
  species_name = "Afzelia bipindensis",
  pheno = "leaf_turnover"
)

Arguments

data

junglerhythms data file

species_name

list of species

pheno

only one phenophase

Details

df already needs to be a continuous timeline call function a ID level

Value

timing of when an event (value) switches between no event (0) and a observation of an event (1)


khufkens/junglerhythms documentation built on Jan. 4, 2024, 4:59 p.m.