Extend transects for any transects with invalid cross section attributes
extend_transects_by_cs_attributes.Rd
Extend transects for any transects with invalid cross section attributes
Usage
extend_transects_by_cs_attributes(
transects = NULL,
flowlines = NULL,
crosswalk_id = NULL,
scale = 0.5,
keep_lengths = FALSE,
reindex_cs_ids = FALSE,
verbose = TRUE
)
Arguments
- transects
sf dataframe of transect LINESTRING geometries
- flowlines
sf dataframe of flowline LINESTRING geometries
- crosswalk_id
character
- scale
numeric percent of original transect length to extend (in both directions). Default is 0.5 or 50% of transects length (i.e. 25% increase in length in both directions).
- keep_lengths
logical whether to keep a record of the original transect lengths or not, default is FALSE, original lengths are not kept
- reindex_cs_ids
logical, whether to reindex the cs_ids to ensure each crosswalk_id has cs_ids of 1-number of transects. Default is FALSE, which guarantees crosswalk_id/cs_ids remain untouched as they were given in the input data. Setting this to TRUE will make sure if any cross sections were removed from a crosswalk_id, then the cs_ids are renumbered so there are no gaps between cs_ids within a crosswalk_id
- verbose
logical