decompact {BlueCarbon} | R Documentation |
Calculate sediment properties after decompaction
Description
Accepts a data.frame with sample properties and compaction estimations and returns a modified version with sample properties corrected for compaction
Usage
decompact(
df = NULL,
core = "core",
compaction = "compaction",
mind = "mind",
maxd = "maxd",
dbd = NULL
)
Arguments
df |
Data.frame with core properties |
core |
Character Name of the column with the id of the core to which the sample belongs |
compaction |
Character Name of the column with core compaction
IN PERCENTAGE, as calculated with |
mind |
Character Name of the column with minimum depth of the sample (depth at the top of the sample) |
maxd |
Character Name of the column with maximum depth of the sample (depth at the bottom of the sample) |
dbd |
Character Name of the column with dry bulk density |
Value
The initial data.frame with the addition of two columns with the corrected minimum and maximum depth of the samples (additionally, if a dry bulk density column is specified, it will return another column with corrected dry bulk density)
Examples
decompact(bluecarbon_data) |>
head()