Find past CO2 linked to a given age.

past_co2(age, ref = codos::ice_core, digits = 2, use_loess = FALSE, ...)

Arguments

age

Numeric value with the age.

ref

Reference data frame containing ice core composite information, defaults to codos::ice_core:

Bereiter, B., Eggleston, S., Schmitt, J., Nehrbass‐Ahles, C., Stocker, T. F., Fischer, H., Kipfstuhl, S., and Chappellaz, J. (2015), Revision of the EPICA Dome C CO2 record from 800 to 600 kyr before present, Geophys. Res. Lett., 42, 542– 549, doi:10.1002/2014GL061957.

digits

Number of significant digits used to match age to the age values in ref.

use_loess

Boolean flag to indicate whether to use a LOESS smoothing (TRUE) or use adjacent records to find the corresponding value of CO2 (FALSE).

...

Extra arguments passed to stats::loess.

Value

Numeric value of CO2 linked to the given age.

Examples

codos::past_co2(-47)
#> [1] 360.715
codos::past_co2(-47, use_loess = TRUE)
#> [1] 346.3537
codos::past_co2(-47, use_loess = TRUE, span = 0.05)
#> [1] 361.2376