translate_sea_level: Translate user-friendly sea-level codes to numerics

View source: R/util.R

translate_sea_levelR Documentation

Translate user-friendly sea-level codes to numerics

Description

Translate user-friendly sea-level codes to numerics

Usage

translate_sea_level(sea_level)

Arguments

sea_level

In DAISIE_sim_time_dep() and plotting a string describing the type of sea level. Can be "const" or "sine" for a sine function describing area through time. String checked by is_sea_level_input().
In all other functions a numeric describing the type of sea level. Can be 0 for constant, 1 for a sine function describing area through time.

Value

Numeric, 0 for null-sea-level, 1 for sine function

Examples

translated_sea_level <- DAISIE:::translate_sea_level("const")

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