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 Oct. 19, 2024, 3:17 a.m.