sf_points_to_df: Adds the coordinates of an sf POINT object as columns

View source: R/spatial.R

sf_points_to_dfR Documentation

Adds the coordinates of an sf POINT object as columns

Description

Adds the coordinates of an sf POINT object as columns

Usage

sf_points_to_df(
  pts_sf,
  coord_colnames = c("stop_lon", "stop_lat"),
  remove_geometry = TRUE
)

Arguments

pts_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 Feb. 18, 2024, 8:03 p.m.