add_area_field | R Documentation |
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)
sf_obj |
An polygon sf object |
field_name |
character. The name of the area field. |
Modified sf object
Chris R. Vernon (chris.vernon@pnnl.gov)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.