Add a column with the area to the given object.
Usage
add_area(x, col_name = ".area", drop_units = FALSE)
Arguments
- x
an sf object.
- col_name
a character (length 1). A name for the new column.
- drop_units
a logical. Should the area units be droppped?
Value
the given sf object with an additional column.