Description Usage Arguments Value Methods (by generic) Examples
Function used to prepare and check list of region
s and/or
macroregion
s to pass to macroregions
as needed to
create macroarea
objects.
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, ...)
|
x |
an object used to select a method. |
... |
a set of |
The list of region
s and macroregion
s
provided.
get_all_region
: wrapper function to access to the all the
names of reagions appear in the 'set_macroregion',
recursively.
get_all_macroregion
: wrapper function to access to the all the
names of macroregions (regions included).
print
: nice (and coloured, if supported) print method.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.