predict.age_depth_model {tidypaleo} | R 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)
[Package tidypaleo version 0.1.3 Index]