replace_point_coords: Replace Selected Point Coordinates

View source: R/fun-update_bbox.R

replace_point_coordsR Documentation

Replace Selected Point Coordinates

Description

Replace the point geometry for selected index in an sf object.

Usage

replace_point_coords(sf, index, x = NA, y = NA)

Arguments

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.

Value

sf, but with updated point coordinates


capellett/scsf documentation built on Sept. 6, 2024, 7:46 a.m.