View source: R/age_depth_model.R
predict.age_depth_model | R Documentation |
Predict age and depth values
## S3 method for class 'age_depth_model' predict(object, .data = NULL, depth = NULL, age = NULL, ...) predict_depth(object, age) predict_age(object, depth)
object |
An age_depth_model object |
.data |
Optional input data frame |
depth, age |
Specify exactly one of these to predict the other. |
... |
Unused |
A data frame with the same number of observations as the input age or depth vector.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.