sf_lines_to_df: Adds the coordinates of an sf LINESTRING object as columns...

View source: R/spatial.R

sf_lines_to_dfR Documentation

Adds the coordinates of an sf LINESTRING object as columns and rows

Description

Adds the coordinates of an sf LINESTRING object as columns and rows

Usage

sf_lines_to_df(
  lines_sf,
  coord_colnames = c("shape_pt_lon", "shape_pt_lat"),
  remove_geometry = TRUE
)

Arguments

lines_sf

sf object

coord_colnames

names of the new columns (existing columns are overwritten)

remove_geometry

remove sf geometry column?


r-transit/tidytransit documentation built on Oct. 19, 2024, 3:17 a.m.