50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

admtools (version 0.4.0)

is_adm: Is an adm object a valid age-depth model

Description

Constructors for adm objects such as tp_to_adm do not check whether the inputs define a valid age-depth mode, e.g. one where the law of superposition holds. This function performs these checks

Usage

is_adm(x, quietly = TRUE)

Value

logical. Is the input a valid adm object?

Arguments

x

an object

quietly

logical. should descriptive warnings be shown?

Examples

Run this code

x = tp_to_adm(t = c(2,1), h = c(1,2)) # reversed order of time tie points
is_adm(x) # returns FALSE


Run the code above in your browser using DataLab