test_extrapolation {BlueCarbon} | R Documentation |
Test differences between observed and extrapolated stocks
Description
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.
Usage
test_extrapolation(
df = NULL,
depth = 100,
core = "core",
mind = "mind_corrected",
maxd = "maxd_corrected",
dbd = "dbd",
oc = "eoc"
)
Arguments
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. |
Value
A data.frame with the observed and extrapolated stocks. A plot with comparisons.
Examples
bluecarbon_decompact <- decompact(bluecarbon_data)
oc <- estimate_oc(bluecarbon_decompact)
out <- test_extrapolation(oc[[1]])