strg_prune | R Documentation |
strg_prune() removes redundant relations from a stratigraphic graph by computing its transitive reduction. The result is a 'pruned' graph that follows Harris' "Law of Stratigraphical Succession": that only the uppermost and undermost relations are significant when placing a unit in a stratigraphic sequence.
strg_prune(strg)
strg |
A |
A stratigraph with redundant relations removed.
bushy_stratigraphy <- stratigraph(
tibble::tibble(
id = letters[1:5],
above = list(NA, "a", "a", c("a", "b", "c"), c("a", "c", "d"))
),
"id", "above"
)
strg_prune(bushy_stratigraphy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.