predict.age_depth_model: Predict age and depth values

View source: R/age_depth_model.R

predict.age_depth_modelR Documentation

Predict age and depth values

Description

Predict age and depth values

Usage

## S3 method for class 'age_depth_model'
predict(object, .data = NULL, depth = NULL, age = NULL, ...)

predict_depth(object, age)

predict_age(object, depth)

Arguments

object

An age_depth_model object

.data

Optional input data frame

depth, age

Specify exactly one of these to predict the other.

...

Unused

Value

A data frame with the same number of observations as the input age or depth vector.

Examples

adm <- age_depth_model(
  alta_lake_210Pb_ages,
  depth = depth_cm, age = age_year_ad,
  age_max = age_year_ad + age_error_yr,
  age_min = age_year_ad - age_error_yr
)

predict(adm, depth = 1:5)


paleolimbot/tidypaleo documentation built on Jan. 25, 2023, 2:43 a.m.