R/sfc_as_cols.R
sfc_as_cols.Rd
Take the geometry column of an sf point object and turn it into columns of the data.frame
sfc_as_cols(x, names = c("lon", "lat"))
An object of class df sf
The desired names for the x and y columns, a string of c("lon", "lat") is the default
c("lon", "lat")
a data.frame