Skip to contents

Add columns with the coordinates of its centroids to the given object.

Usage

add_centroids_coords(x, col_names = c("X", "Y"))

Arguments

x

an sf object.

col_names

a character (length 2). Names for the new XY columns.

Value

the given sf object with additional columns.