Learn R Programming

barrks (version 1.1.1)

bso_get_flight_rst: Get flight of individuals (BSO only)

Description

Get the number of individuals that are flying.

Usage

bso_get_flight_rst(pheno, generation, flight = 1, dates = prop_dates(pheno))

bso_get_flight_df( pheno, generation, stations = prop_stations(pheno), flight = 1, dates = prop_dates(pheno) )

Value

  • bso_get_flight_rst: a multi-layer SpatRaster.

  • bso_get_flight_df: a data frame.

Arguments

pheno

A BSO phenology (see bso_phenology())

generation

Generation of interest. For sister broods, 0.5 should be added.

flight

Specifies which flight of the respective generation should be returned. Can be 1 (first flight) or 2 (second flight).

dates

Select dates that should be present in the output.

stations

Pass a character vector to choose stations assigned to pheno by their names, or pass different stations. See stations_create() for details.

Examples

Run this code
# \donttest{
# This may take a few minutes...

# calculate phenology
p <- bso_phenology('bso', barrks_data('stations'), .quiet = TRUE)

# get the number of individuals of the hibernating generation on their first flight
bso_get_flight_df(p, 0, 'Freiburg', flight = 1)
# }

Run the code above in your browser using DataLab