Created
June 30, 2014 03:31
-
-
Save fformenti/e4b3c581a53fa6624d39 to your computer and use it in GitHub Desktop.
domain names data treatment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df <- read.csv('original_gtld.csv', header=TRUE,fileEncoding="LATIN-9") | |
names(df) <- c("Domain","Company") | |
df$Company <- gsub(pattern = "AARP", replacement = "AARP Company", df$Company) | |
df$Company <- gsub(pattern = "ALSTOM", replacement = "ALSTOM Company", df$Company) | |
df$Company <- gsub(pattern = "LANCASTER", replacement = "LANCASTER Company", df$Company) | |
df$Company <- gsub(pattern = "SES", replacement = "SES Company", df$Company) | |
df$Company <- gsub(pattern = "TRANSLATIONS", replacement = "TRANSLATIONS Company", df$Company) | |
write.csv2(df, file = 'treated_gtld.csv', row.names = F) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment