Calculate and summarise selected metrics of building footprints within zones.

fs_count(X, index = NULL, col = NULL)

# S3 method for sp
fs_count(X, index = NULL, col = NULL)

# S3 method for sf
fs_count(X, index = NULL, col = NULL)

Arguments

X

Spatial object with building footprint polygons

index

A string identifying a column within X which provides a zonal index for summarising values. Alternatively a vector of indices can be provided. If omitted, all observations in X are assumed to be within one zone.

col

column name within X with pre-calculated area measures

unit

character or units object to define area. Default is NULL which will use the units of the spatial reference system

Value

data.table of zonal indices and values.

Details

Note that this function is provided as a standalone calculation for convenience. The same summary measure can be executed within calculate_footstats by specifying what='settled' and how='count'.