Description Usage Arguments Value Examples
This function is a low-level one and used in each *_city function (cbd_city, tod_city, finger_city ...etc.). this gives a dictionary which indicates by which new identifier the old one must be changed, the latter answering the criterion of proximity and to the candidacy of the city
1 | relocate_one(pol, idpol, cand)
|
pol |
An sf object of the cities |
idpol |
A character string of the column containing the id of the pol object |
cand |
A character string of the column containing binary (1, 0) candidate value of the pol object |
A data.frame with two column : OLD (containing the id to be changed) and NEW (containing the new id)
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.