Skip to content

Commit

Permalink
Fixed bug with USA becoming Usa
Browse files Browse the repository at this point in the history
  • Loading branch information
lboullu committed May 9, 2020
1 parent c62a15b commit 665a52d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test_server_nofile.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ server <- function(input, output, session) {
Unique_CountryName_full <- read.csv("Unique_CountryName_full.csv", header = T, stringsAsFactors = F)$x
}else{
Unique_CountryName_full <- unique(toTitleCase(tolower(data$Country)))
Unique_CountryName_full[Unique_CountryName_full=="Usa"] <- "USA"
Unique_CountryName_full <- sort(Unique_CountryName_full[Unique_CountryName_full!=""])
Unique_CountryName_full <- c(Unique_CountryName_full, "World")
#execute the following line to speed up the process (not generate country names at every run)
Expand Down

0 comments on commit 665a52d

Please sign in to comment.