strat_connect: Connect stratigraphic units

View source: R/stratigraph.R

strat_connectR Documentation

Connect stratigraphic units

Description

Constructs a table of directed edges between stratigraphic units based on a vector of relations (e.g. "above" or "below").

Usage

strat_connect(units, relations, direction = c("above", "below"))

Arguments

units

Vector of unit labels.

relations

Vector of relations.

direction

Are the units in relations "above" or "below" the ones in units?

Value

A data frame of directed edges represented by to and from columns, which can be used as the nodes argument to tidygraph::tbl_graph().


joeroe/stratigraphr documentation built on May 17, 2023, 9:52 p.m.