classify_units {flexurba} | R Documentation |
Create the DEGURBA spatial units classification
Description
classify_units()
has been renamed to DoU_classify_units()
to create a more consistent API and to better indicate that this function is specifically designed to classify units in the context of the DEGURBA classification'.
Usage
classify_units(
data,
id = "UID",
level1 = TRUE,
values = NULL,
official_workflow = TRUE,
filename = NULL
)
Arguments
data |
named list with the required data, as returned by the function |
id |
character. Unique column in the |
level1 |
logical. Whether to classify the spatial units according to first hierarchical level ( |
values |
vector with the values assigned to the different classes in the resulting units classification:
|
official_workflow |
logical. Whether to employ the official workflow of the GHSL ( |
filename |
character. Output filename (csv). The resulting classification together with a metadata file (in JSON format) will be saved if |
Value
dataframe with for each spatial unit the classification and the share of population per grid class