example.region.data <- data.frame(year = seq(from = 1850, to = 2023, by = 1),
region = rep("Example Region", 174),
r = rep(5, 174),
sst = seq(5.9, 6.6, 174),
sss = seq(32.3, 32.7, 174),
CO2atm = SuessR.reference.data$CO2atm[1:174],
up.con = rep(0.014, 174),
Cp = rep(0.41, 174))
example.custom.data <- data.frame(id = c("Sample 1", "Sample 2",
"Sample 3", "Sample 4"),
year = c(1850, 1900, 1950, 2000),
d13c = c(-12, -12, -12, -12),
region = rep("Example Region", 4))
SuessR.custom(data = example.custom.data,
custom.region.data = example.region.data,
correct.to = 1850)
Run the code above in your browser using DataLab