ps_sfcs_centroid: Find centroid of sfcs

Description Usage Arguments Value

View source: R/centroid.R

Description

Centroid can be found for multiple sfc columns and any geometry type. For polygon and linestring data, centroid is calculated from vertices. Sfc columns must have same crs and should not be longitude/latitude.

Usage

1
ps_sfcs_centroid(x, sfc_names = ps_sfc_names(x), union = TRUE)

Arguments

x

The object

sfc_names

A character vector of the sfc column names

union

A flag indicating whether to use st_union() (the default) versus st_combine() prior to st_centroid()

Value

Sf object of centroid


poissonconsulting/poisspatial documentation built on Oct. 5, 2018, 2:16 p.m.