create_transect: Create transects

Description Usage Arguments

View source: R/create-transect.R

Description

Create transects of user-defined length along an input line

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
create_transect(
  x,
  transect_spacing = NULL,
  length_left = if (all(!is.null(transect_spacing), is.numeric(transect_spacing)))
    transect_spacing,
  length_right = if (all(!is.null(transect_spacing), is.numeric(transect_spacing)))
    transect_spacing,
  reverse = FALSE,
  ...
)

Arguments

x

name of an object of class sf, or a path to a file readable by the sf::st_read function, which must contain geometries of type LINESTRING or MULTILINESTRING.

transect_spacing

character or numeric. If numeric, represents the spacing between transects in x CRS units. If character, accepts only the string 'vertices' as argument (allows partial matching)

length_left

numeric; length of transects to the right of the input line

reverse

logical; reverse orientation of transects; default FALSE

...

other arguments passed to sf::st_read.


geofis/coastr documentation built on July 3, 2020, 6:33 p.m.