View source: R/fun-update_bbox.R
replace_point_coords | R Documentation |
Replace the point geometry for selected index in an sf object.
replace_point_coords(sf, index, x = NA, y = NA)
sf |
an object with class 'sf' or 'sfc' |
x |
the new x coordinate (longitude), or NA to leave as is. |
y |
the new y coordinate (latitude), or NA to leave as is. |
sf, but with updated point coordinates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.