add_area_field: Add and calculate an area field for polygon sf objects

View source: R/modification.R

add_area_fieldR Documentation

Add and calculate an area field for polygon sf objects

Description

Add and calcualte an area field for polygon sf objects. Area is calcuated based on the linear unit of the assigned projection of the input sf object.

Usage

add_area_field(sf_obj, field_name)

Arguments

sf_obj

An polygon sf object

field_name

character. The name of the area field.

Value

Modified sf object

Author(s)

Chris R. Vernon (chris.vernon@pnnl.gov)


JGCRI/rgis documentation built on July 27, 2023, 1:47 p.m.