sf_point_attributes: Calculate x and y coordinate values as new fields.

View source: R/sf_point_attributes.R

sf_point_attributesR Documentation

Calculate x and y coordinate values as new fields.

Description

Calculate x and y coordinate values as new fields.

Usage

sf_point_attributes(points, field_names = c("X", "Y"))

Arguments

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).

Details

based on jmlondon suggestion for an 'sf_as_cols' function: [sf/issues/231](https://github.com/r-spatial/sf/issues/231)

Value

sf object of type POINT


FluvialGeomorph/fluvgeo documentation built on Feb. 19, 2025, 4:24 p.m.