donnees <- data.frame(
region = c("Bangui","Ombella-M'Poko","Bangui"),
valeur = c(100, 200, 50),
stringsAsFactors = FALSE
)
ref <- data.frame(
nom_local = c("Bangui","Ombella-M'Poko","Kemo","Mbomou"),
stringsAsFactors = FALSE
)
valider_coherence_geo(donnees, "region", ref, "nom_local")
Run the code above in your browser using DataLab