sp_add_area: Function to calculate areas of a spatial object and add the...

View source: R/sp_add_area.R

sp_add_areaR Documentation

Function to calculate areas of a spatial object and add the results to the data slot.

Description

Function to calculate areas of a spatial object and add the results to the data slot.

Usage

sp_add_area(sp, round = NA)

Arguments

sp

A spatial polygons object with a data slot.

round

Number of digits to round the calculated area result to.

Value

Spatial polygons with an additional variable in the data slot.

Author(s)

Stuart K. Grange


skgrange/gissr documentation built on June 20, 2024, 12:02 a.m.