View source: R/bc_depth_correction.R
bc_depth_correction | R Documentation |
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
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"
)
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 |
the initial sample_data with the addition of the corrected sample depth and volume
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.