simulateSoilCore: Simulate a sediment core from a set of cohorts

View source: R/simulateSoilCore.R

simulateSoilCoreR Documentation

Simulate a sediment core from a set of cohorts

Description

Simulate a sediment core from a set of cohorts

Usage

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
)

Arguments

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

Value

a dataframe with variables simulated from a soil core


tilbud/rCTM documentation built on March 30, 2024, 10:06 a.m.