This function opens a dialog window for the user to select which variable in the population shapefile (if population-weighted centroids are requested) should be used to determine area populations.

Figure: Dialog to select base population

Select your desired base population variable. Then click on one of the following buttons.

  • Click Next to continue to the next step.

  • Click Cancel to end GAT.

  • Click Back to return to the previous step.

  • Click Help to get further guidance and open this manual.

identifyGATpopulation(varlist, step = 8, var = "NONE", backopt = TRUE)

Arguments

varlist

A vector of names of variables. Within GAT, these variables must be numeric, but the function does not require that.

step

Integer step in the GAT program, for help reference.

var

Population variable to use for weighting, if pre-selected.

backopt

Boolean denoting whether to include the back button.

Examples


if (interactive()) {
# identify variable to aggregate
identifyGATpopulation(varlist = c("Pop_tot", "F_tot", "M_tot"), step = 7)
}
#> [1] "cancel"