View source: R/simulateSoilCore.R
simulateSoilCore | R Documentation |
Simulate a sediment core from a set of cohorts
simulateSoilCore(
cohorts,
coreYear,
coreDepth = 100,
coreMaxs = 1:coreDepth,
coreMins = coreMaxs - 1,
omToOcParams = list(B0 = 0, B1 = 0.48),
omPackingDensity = 0.085,
mineralPackingDensity = 1.99,
rootPackingDensity = omPackingDensity
)
cohorts |
a data frame, output from runCohortMem, tracking mineral and organic mass cohorts over each year of the simulation |
coreYear |
an integer, year in form YYYY, specify a year to simulate taking a sediment core |
coreDepth |
an integer, depth, specify a depth to simulate coring to and assume 1 cm sampling intervals |
coreMaxs |
a vector of sampling depth maximums to simulate coring subsamples, this is an alternative to depth, and 1cm increments |
coreMins |
a vector of sampling depth minimums to simulate coring subsamples, this is an alternative to depth, and 1cm increments |
omToOcParams |
a list of parameters defining a linear or quadratic relationship between fraction organic matter and fraction carbon |
omPackingDensity |
a numeric, the bulk density of pure organic matter |
mineralPackingDensity |
a numeric, the bulk density of pure mineral matter |
rootPackingDensity |
a numeric, the bulk density of pure root matter |
a dataframe with variables simulated from a soil core
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.