Use vietnamcode package to convert Vietnam’s provincial ID
less than 1 minute read
If you have ever struggled with various coding schemes of Vietnam’s provincial IDs like me, there’s a solution! I wrote the vietnamcode package to convert across all coding schemes, including provincial names with or without diacritics.
The main function is vietnamcode – here’s how flexible it is:
The coding schemes supported are:
enterprise_census (old and new)
If you find any bug, please let me know at my package on github. I hope you find it useful. Thanks to the people behind the package countrycode for inspiration.