Learn R Programming

BlueCarbon (version 0.1.1)

decompact: 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
)

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)

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 estimate_compaction().

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

Examples

Run this code
decompact(bluecarbon_data) |>
  head()

Run the code above in your browser using DataLab