View source: R/test_extrapolation.R
test_extrapolation | R Documentation |
Subset those cores that reach the standardization depth and estimates the stock (observed stock), estimate the stock from the linear relation of organic carbon accumulated mass and depth using the 90, 75, 50 and 25% top length of the indicated standardization depth. Compares the observed stock with the estimated stocks by extrapolation.
test_extrapolation(
df = NULL,
depth = 100,
core = "core",
mind = "mind_corrected",
maxd = "maxd_corrected",
dbd = "dbd",
oc = "eoc"
)
df |
A data.frame with, at least, columns: core, mind (minimum depth of the sample), maxd (maximum depth of the sample), dbd (dry bulk density), oc (organic carbon %) |
depth |
Number Standardization soil depth, by default 100 cm. |
core |
Character Name of the column reporting core ID. |
mind |
Character Name of the column reporting the minimum depth of each sample. |
maxd |
Character Name of the column reporting the maximum depth of each sample. |
dbd |
Character Name of the column reporting dry bulk density. |
oc |
Character Name of the column reporting organic carbon concentrations. |
A data.frame with the observed and extrapolated stocks. A plot with comparisons.
bluecarbon_decompact <- decompact(bluecarbon_data)
oc <- estimate_oc(bluecarbon_decompact)
out <- test_extrapolation(oc[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.