translate_island_ontogeny: Translate user-friendly ontogeny codes to numerics

View source: R/util.R

translate_island_ontogenyR Documentation

Translate user-friendly ontogeny codes to numerics

Description

Translate user-friendly ontogeny codes to numerics

Usage

translate_island_ontogeny(island_ontogeny)

Arguments

island_ontogeny

In DAISIE_sim_time_dep(), DAISIE_ML_CS and plotting a string describing the type of island ontogeny. Can be "const", "beta" for a beta function describing area through time. String checked by is_island_ontogeny_input().
In all other functions a numeric describing the type of island ontogeny. Can be 0 for constant, 1 for a beta function describing area through time. In ML functions island_ontogeny = NA assumes constant ontogeny.

Value

Numeric, 0 for null-ontogeny, 1 for beta function

Examples

translated_ontogeny <- DAISIE:::translate_island_ontogeny("const")

thijsjanzen/TRAISIERCPP documentation built on June 21, 2022, 2:25 p.m.