View source: R/estimate_compaction.R
estimate_compaction | R Documentation |
Estimates the percentage of core compaction using measurements from a data.frame containing core properties. It computes a correction factor based on sampler tube length, internal distance, and external distance, and adds a 'compaction' column to the input data.frame with the calculated compaction rate as a percentage.
estimate_compaction(
df = NULL,
core = "core",
sampler_length = "sampler_length",
internal_distance = "internal_distance",
external_distance = "external_distance"
)
df |
A data.frame containing core properties. |
core |
Character Name of the column identifying each core. |
sampler_length |
Character Name of the column with the total length of the sampler tube. |
internal_distance |
Character Name of the column with the distance between sampler top and core surface. |
external_distance |
Character Name of the column with the distance between sampler top and sediment surface. |
Returns the input data.frame with an additional 'compaction' column indicating the estimated percentage of core compaction.
df <- estimate_compaction(
core_comp,
core = "core",
sampler_length = "sampler_length",
internal_distance = "internal_distance",
external_distance = "external_distance"
)
head(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.