bc_depth_correction: bc_depth_correction

View source: R/bc_depth_correction.R

bc_depth_correctionR Documentation

bc_depth_correction

Description

Calculates corrected sample depth and sample volume to account for compaction (linear or exponential methods). User provides a core data.frame and a sample data.frame User can specify if the sample volume is estimated from a half of the core or in another way.

The function returns the sample data.frame modified with the addition of the estimated parameters

Usage

bc_depth_correction(
  core_data,
  sample_data,
  sampler_length = "sampler_length",
  sampler_diameter = "sampler_diameter",
  internal_distance = "internal_distance",
  external_distance = "external_distance",
  method = "linear"
)

Arguments

core_data

data.frame with core properties

sample_data

data.frame with sample properties

sampler_length

name of the column with the total length of the sampler tube

sampler_diameter

name of the column with the diameter of the sampler tube

internal_distance

name of the column with distance between sampler top and core surface

external_distance

name of the column with distance between sampler top and sediment surface

method

linear or exponential correction

Value

the initial sample_data with the addition of the corrected sample depth and volume


costavale/BlueCarbon documentation built on May 7, 2023, 2:18 a.m.