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
is_adm(x, quietly = TRUE)
logical. Is the input a valid adm object?
an object
logical. should descriptive warnings be shown?
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