Skip to content

Instantly share code, notes, and snippets.

@njahn82
Created October 16, 2015 11:00
Show Gist options
  • Save njahn82/8c45cd0440e9fe9228f2 to your computer and use it in GitHub Desktop.
Save njahn82/8c45cd0440e9fe9228f2 to your computer and use it in GitHub Desktop.
Match records from ISI Web of Science with the DOAJ
# load ISI spradsheet
vu_amst <- read.csv("pubs_2012-14 V5 CSV.csv", header = TRUE, sep =";",
na.strings = "")
vu_amst$SN <- as.character(vu_amst$SN)
# load DOAJ spreadsheet
doaj <- httr::content(httr::GET("http://doaj.org/csv"))
# join ISSN and EISSN as vector
doaj.issn <- c(as.character(doaj$Journal.ISSN..print.version.),
as.character(doaj$Journal.EISSN..online.version.))
doaj.issn <- doaj.issn[!doaj.issn == ""]
# match with the vu dataset
vu_amst$DOAJ <-vu_amst$SN %in% doaj.issn
vu_doaj <- vu_amst[vu_amst$DOAJ == TRUE,]
table(vu_doaj$DOAJ, vu_doaj$PY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment