Last active
August 29, 2015 14:07
-
-
Save aurora-mareviv/459401dc782e5f054767 to your computer and use it in GitHub Desktop.
Download 2014 Impact factors from Citefactor.org
This file contains 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
#################################### | |
### DOWNLOAD IMPACT FACTORS 2014 ### | |
#################################### | |
# url: http://www.citefactor.org/journal-impact-factor-list-2014.html | |
# download lots of tables, then join them | |
# tabs <- getURL(url) | |
# tabs <- readHTMLTable(tabs, stringsAsFactors = F) | |
library(RCurl) | |
library(XML) | |
index <- toupper(letters) | |
index[1] <- "0-A" | |
url <- paste("www.citefactor.org/journal-impact-factor-list-2014_", index, ".html", sep="", collapse=";") | |
urls <- strsplit(url, ";") [[1]] | |
Datab <- lapply(urls, function(x){ | |
readHTMLTable( | |
getURL(x), | |
stringsAsFactors=F)[[2]] | |
}) | |
ifactors <- do.call(rbind, Datab) | |
names(ifactors) <- c('index','journal.citefactor','ISSN','if2013','if2012','if2011','if2010','if2009','if2008') | |
# save(ifactors, file="ifactors.RData") | |
message("ifactors database succesfully downloaded") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment