Skip to contents

Remplace les cog d'arrondissements communaux par les cog communaux pour Paris, Lyon et Marseille Replace "arrondissements" codes by city codes for Paris, Lyon and Marseille

Usage

rm_arrond(tab, var_cog)

Arguments

tab

table with a cog column

var_cog

name of the cog column

Value

tab with modified cog column (Paris, Lyon and Marseilles codes without arrondissement)

Examples

tab <- data.frame(id = 1:5, code_commune_ref = c("75118", "75000", "35000", "69382", NA))
var_cog <- "code_commune_ref"
mapvotr:::rm_arrond(tab, var_cog)
#> [1] "Launch rm_arrond"
#> Log is not open.
#>   id code_commune_ref
#> 1  1            75056
#> 2  2            75000
#> 3  3            35000
#> 4  4            69123
#> 5  5             <NA>