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.

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

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