Skip to contents

Extend/shrink an sf linestring dataframe by a specified lengths vector

Usage

adjust_transect_lengths(
  x,
  crosswalk_id = NULL,
  dir = "left",
  length_col = NULL
)

Arguments

x

linestring sf dataframe, requires an

crosswalk_id

character, unique ID column name

dir

direction to extend/shrink transect from, either "left" or "right". Default is "left".

length_col

character, name of the column in "x" that has the length of the linestring (meters)

Value

sf dataframe with extended linestring geometries