Skip to content

Commit

Permalink
Add empty locations to Unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
biocyberman authored and Vang Le-Quy committed Sep 15, 2021
1 parent abcd78a commit cd25e34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/Vietnam.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ Vietnam <- R6::R6Class("Vietnam",
level_1_region = stringi::stri_trans_general(level_1_region, "latin-ascii"),
level_1_region = stringi::stri_trim_both(level_1_region),
level_1_region = stringr::str_replace_all(level_1_region, '\\(.*\\)|-| ', ''),
level_1_region = stringr::str_to_title(level_1_region)
level_1_region = stringr::str_to_title(level_1_region),
level_1_region = tidyr::replace_na(level_1_region, "Unknown")
) %>%
left_join(
self$codes_lookup$`1`,
Expand Down

0 comments on commit cd25e34

Please sign in to comment.