Description Usage Arguments Value Creation notes
sf_XYtoCols()
adds and x and y column to the sf dataframe
from the sf geometry.
1 | sf_XYtoCols(x, names = c("x", "y"))
|
x |
sf Point feature |
names |
Names for x and y columns. (Default is c("x", "y")) |
Returns the inputed sf object with two new columns.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.