sfc_as_cols: sfc_as_cols

Description Usage Arguments Value

View source: R/sfc_as_cols.R

Description

Take the geometry column of an sf point object and turn it into columns of the data.frame

Usage

1
sfc_as_cols(x, names = c("lon", "lat"))

Arguments

x

An object of class df sf

names

The desired names for the x and y columns, a string of c("lon", "lat") is the default

Value

a data.frame


jcvdav/startR documentation built on Oct. 13, 2021, 2:40 a.m.