set_macroregions: List of regions/macroregion creator

Description Usage Arguments Value Methods (by generic) Examples

View source: R/macroarea.R

Description

Function used to prepare and check list of regions and/or macroregions to pass to macroregions as needed to create macroarea objects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'set_macroregions'
get_all_region(x, ...)

## S3 method for class 'set_macroregions'
get_all_macroregion(x, ...)

set_macroregions(...)

## S3 method for class 'set_macroregions'
print(x, ...)

Arguments

x

an object used to select a method.

...

a set of regions and/or macroregion

Value

The list of regions and macroregions provided.

Methods (by generic)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pavia  <- center('Pavia',  'Lombardia')
milano <- center('Milano', 'Lombardia')
lombardia <- region(set_centers(pavia, milano))

padova <- center('Padova', 'Veneto', 8, 0.7)
veneto <- region(set_centers(padova))

nitp <- macroregion('NITp', set_regions(lombardia, veneto))

torino   <- center('Torino', 'Piemonte', 7, 0.6)
piemonte <- region(set_centers(torino))

get_all_region(set_macroregions(piemonte, nitp))
get_all_macroregion(set_macroregions(piemonte, nitp))
pavia  <- center('Pavia',  'Lombardia')
milano <- center('Milano', 'Lombardia')
lombardia <- region(set_centers(pavia, milano))

padova <- center('Padova', 'Veneto', 8, 0.7)
veneto <- region(set_centers(padova))

nitp <- macroregion('NITp', set_regions(lombardia, veneto))

torino   <- center('Torino', 'Piemonte', 7, 0.6)
piemonte <- region(set_centers(torino))

set_macroregions(piemonte, nitp)

UBESP-DCTV/clumpr documentation built on July 3, 2021, 11:23 p.m.