weightGATmap: Find the Weighted Centriods for the Map

View source: R/weightGATmap.R

weightGATmapR Documentation

Find the Weighted Centriods for the Map

Description

This function identifies the population weighted centroids for all areas in your original map.

Usage

weightGATmap(area, pop, idvar, popvar, crs = NULL)

Arguments

area

Spatial layer representing areas to be aggregated.

pop

Spatial layer containing underlying population values.

idvar

Variable of unique string values to identify the layer's observations.

popvar

The base population variable.

crs

User-defined non-lat/long projection, entered as a string. For the default, NULL, the function defines the projection.

Examples


if (interactive()) {
cen <- weightGATmap(area = hftown, pop = hfpop, idvar = "ID", popvar = "Pop")
}


ajstamm/gatpkg documentation built on Nov. 23, 2023, 9:44 a.m.