chronology: Estimate Nesting Chronology from Nest Observations to a...

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

Used to estimate the nesting chronology from observations to a single nest.

Usage

1
chronology(dat, details = FALSE, nparam = NULL, test = FALSE, minclutch = TRUE, rel.flex = c(0, 0), nact = TRUE, lsc = NULL)

Arguments

dat

A data.frame containing observations for a single nest with column namesĀ : nest_id, species_code, date, eggs, young and optionally status_code.

details

Modifies the output of the function to give either the range of dates for which the nest is active or the complete nesting sequence with the nesting stages on different dates as names. When set to TRUE, gives the complete nesting sequence.

nparam

A data.frame containing nesting parameters for the species with column namesĀ : species_code, cmin, cmax, clutch, laying, start, incub and rearing.

test

Modifies the output of the function to give a data.frame facilitating the comparison between the observations, the nesting parameters and the estimation. When set to TRUE, the output is the test data.frame.

minclutch

If a single observation is made with a number of eggs inferior to the minimal clutch size, this argument determines if the nest will be considered in the laying stage with the mean clutch size or if the nest will be considered in the incubation stage with the observed number of eggs used as the clutch size. Whent set to TRUE, a single observation with a number of eggs below the minimum clutch size will be considered in the laying stage.

rel.flex

Determines the amount of variation that will be attributed to the incubation period when the length of the observed incubation+rearing period differ from the theoretical length. When set to NULL, the relative adjustement of the incubation and the rearing period will be proportional to their theoretical lengths. Otherwise, a vector of two proportions determining the amount of variation that will be attributed to the incubation period when the observed length of the incubation+rearing period is either longer or shorter than the theoretical one, respectively. A value of rel.flex = c(0, 0) attributes all the variation to the rearing period and fixes the length of incubation.

nact

Determines how observations of unknown number of eggs and young will be interpreted when estimating the nest chronology. When set to TRUE, observations reporting values of (-1, -1) for the number of eggs and young will be considered to represent an active nest containing either eggs, young or both and the complete chronology will be centered around these observations. When set to FALSE, values of (-1,-1) will be interpreted as indicative of the presence of both eggs and young in the nest.

lsc

A named list with stages as names and corresponding status codes to be interpreted as such (ex: list(laying=c("HR"), hatching=c("PI","CR"))).

Details

When no nesting parameters are available ( nparam = NULL ), nesting parameters from the database nestingparameters can be used. In this case, the database has to be made available in the global environment by typing data(nestingparameters) in the console (see function data). The rNest function will also make the nesting parameters available in the global environment.

Value

Usually a vector (see argument details)

Note

In general, the active.nest function should be used instead because it applies to several nests. The chronology function is mostly there to simplify the code and is mostly intended to be used inside the active.nest function.

Author(s)

Francois Rousseu <francoisrousseu@hotmail.com>

See Also

active.nest, rNest

Examples

1
To be described

frousseu/rNest documentation built on May 16, 2019, 3:32 p.m.