Skip to contents

Determine the interior angle between a LINESTRING and the horizontal.

Usage

st_orientation(x, nest = TRUE)

Arguments

x

a sf object containing LINESTRING geometries.

nest

logical; If TRUE, LINESTRING geometries will be recreated.

Value

An unnested sf object containing the orientation of each line segment making up the original LINESTRING geometries.