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?


tidytransit documentation built on Oct. 18, 2024, 5:13 p.m.