Skip to content

Commit

Permalink
Remove prefixes in vietnam_codes.R
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardMN committed Sep 19, 2021
1 parent 2c20067 commit 26cd8ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data-raw/vietnam_codes.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ vietnam_codes <- data.frame(
stringsAsFactors = FALSE
) %>%
mutate(
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 = stri_trans_general(level_1_region, "latin-ascii"),
level_1_region = stri_trim_both(level_1_region),
level_1_region = str_replace_all(level_1_region, '\\(.*\\)|-| ', ''),
level_1_region = str_to_title(level_1_region)
)

# update package region_codes
Expand Down

0 comments on commit 26cd8ad

Please sign in to comment.