is_adm {admtools} | R Documentation |
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)
Arguments
x |
an object |
quietly |
logical. should descriptive warnings be shown? |
Value
logical. Is the input a valid adm object?
Examples
x = tp_to_adm(t = c(2,1), h = c(1,2)) # reversed order of time tie points
is_adm(x) # returns FALSE
[Package admtools version 0.4.0 Index]