Learn R Programming

barrks (version 1.1.0)

properties: Get phenology properties

Description

To examine a phenology, there are different functions to query its properties.

Usage

## get the year the phenology was calculated for
prop_year(pheno)

## get all dates that are covered by the phenology prop_dates(pheno)

## get the first date that is covered by the phenology prop_first_date(pheno)

## get the last date that is covered by the phenology prop_last_date(pheno)

## get all hatched generations as numeric vector prop_hatched_generations(pheno)

## get all hatched filial generations as numeric vector prop_filial_generations(pheno)

## get all hatched sister broods as numeric vector prop_sister_broods(pheno)

## get the stations assigned to the phenology prop_stations(pheno)

Value

The requested property.

Arguments

pheno

A phenology (see phenology())

Examples

Run this code
# \donttest{
# calculate phenology
p <- phenology('phenips-clim', barrks_data(), .quiet = TRUE)

# print all generations that were hatched
prop_hatched_generations(p)
# }

Run the code above in your browser using DataLab