better import of issuelist
This commit is contained in:
@@ -23,13 +23,15 @@ unlink(id_folder, recursive = TRUE)
|
||||
dir.create(id_folder)
|
||||
|
||||
issues <- data.frame(date = drange)
|
||||
issuelist <- xmlToList("issues.xml")
|
||||
issuelist <- readLines("issues.xml")
|
||||
issuelist <- str_replace_all(string = issuelist, pattern = ".*<!-- .+ -->", "")
|
||||
issuelist <- xmlToList(issuelist)
|
||||
issueheads <- names(issuelist)
|
||||
issues[issueheads] <- 0
|
||||
tweets$issue <- ""
|
||||
tweets$tags <- ""
|
||||
|
||||
tagexpand <- c("", "s", "n", "en")
|
||||
tagexpand <- c("", "s", "n", "en", "er")
|
||||
|
||||
for(d in 1:nrow(issues)) {
|
||||
# Go through every day
|
||||
|
||||
+515
-575
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user