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

Description Usage Arguments

View source: R/spatial.R

Description

Adds the coordinates of an sf POINT object as columns

Usage

1
2
3
4
5
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 Nov. 23, 2021, 5:08 p.m.