Build Status codecov CRAN

Usage

Use the main function vietnamcode to convert Vietnam’s provinces’ names and ID across different formats. The function can handle diacritics and various spellings.

source <- "HCMC"
vietnamcode::vietnamcode(source, "province_name", "province_name")
vietnamcode::vietnamcode(source, "province_name", "pci")
vietnamcode::vietnamcode(source, "province_name", "enterprise_census")

Installation

install.packages("vietnamcode") # Or
devtools::install_github("LaDilettante/vietnamcode")