summary_statistics: Compute basic summary statistics.

Description Usage Arguments Value

View source: R/statistics.R

Description

Computes total population, maximum population density, percent empty, percent urban, and pareto number. Total population makes sense here because the area is surrounded by water, so that every filled pixel is part of this administrative unit.

Usage

1
summary_statistics(population, density, urban_per_kilometer_sq)

Arguments

population

raster::raster of population data.

density

raster::raster that is density estimated population data

Value

A list with the statistics, which are maximum value, total population, pareto fraction, urban fraction, and NA fraction. Columns are 'maximum', 'total', 'empty_fraction', 'pareto_fraction', 'urban_fraction', 'na_fraction'.


dd-harp/population_comparison_bioko documentation built on Feb. 28, 2021, 11:05 p.m.