View source: R/sf_point_attributes.R
sf_point_attributes | R Documentation |
Calculate x and y coordinate values as new fields.
sf_point_attributes(points, field_names = c("X", "Y"))
points |
sf object of type POINT, The input point features. |
fieldnames |
character, Provide custom names for the coordinate fields to be created. Names must be provided in the sf Dimension order (i.e,, XY, XTM, XYZ, XYZM). |
based on jmlondon suggestion for an 'sf_as_cols' function: [sf/issues/231](https://github.com/r-spatial/sf/issues/231)
sf object of type POINT
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.