Create age depth models
age_depth_model(
.data = NULL,
depth,
age,
age_min = NA_real_,
age_max = NA_real_,
interpolate_age = age_depth_interpolate,
extrapolate_age_below = ~age_depth_extrapolate(.x, .y, x0 = last, y0 = last),
extrapolate_age_above = ~age_depth_extrapolate(.x, .y, x0 = first, y0 = first),
interpolate_age_limits = age_depth_exact,
extrapolate_age_limits_below = age_depth_na,
extrapolate_age_limits_above = age_depth_na
)
A data frame
Expressions evaluated in .data
that
provide the known depths, known ages, and error information if available.
These expressions are evaluated like they are within mutate
if .data
is present.
These arguments provide the rules for interpolating and extrapolating ages based on depths.
These arguments provide the rules for interpolating and extrapolating age min and max values based on depths.
An age depth model object.
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
)
#> <age_depth_model>
#> Call:
#> age_depth_model(
#> .data = alta_lake_210Pb_ages, depth = depth_cm,
#> age = age_year_ad, age_min = age_year_ad - age_error_yr,
#> age_max = age_year_ad + age_error_yr
#> )