convertProfileAgeToDepth: Convert soil profile from age to depth based cohorts

View source: R/convertProfileAgeToDepth.R

convertProfileAgeToDepthR Documentation

Convert soil profile from age to depth based cohorts

Description

This function takes an age cohort soil profile and converts it to a depth based cohort using weighted sums and means.

Usage

convertProfileAgeToDepth(ageCohort, layerTop, layerBottom)

Arguments

ageCohort

a dataframe specifying the age cohort. Must contain layer_top, layer_bottom, age, fast_OM, slow_OM, mineral, and root_mass.

layerTop

a vector of the tops of the soil layers we want to convert to.

layerBottom

a vector of the bottom of the soil layers we want to convert to.

Value

a data frame specifying the depth cohorts. Contains layer_top, layer_bottom, age, fast_OM, slow_OM, mineral, and root_mass.


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