sf_XYtoCols: Add XY columns from point sf

Description Usage Arguments Value Creation notes

Description

sf_XYtoCols() adds and x and y column to the sf dataframe from the sf geometry.

Usage

1
sf_XYtoCols(x, names = c("x", "y"))

Arguments

x

sf Point feature

names

Names for x and y columns. (Default is c("x", "y"))

Value

Returns the inputed sf object with two new columns.

Creation notes

First conceptualized on 2019-Mar-6 in Lab4inR.R as I was working to create a NetLogo Program in R. But I was able to find code online that fit my needs here: https://github.com/r-spatial/sf/issues/231


jacpete/jpfxns2 documentation built on May 10, 2020, 9:15 p.m.