0

我试图通过构建一个顶点列表数据框,通过 RISmed 包从 PubMed 获取文章来构建一个 R igraph 图,如下所示:

Name              Count
Cardone L         22
...               ...
Sassone-Corsi P   6
...               ...

和相应的(无向)边列表

V1        V2              NumberOfCoAuthorships
Cardone L Sassone-Corsi P 4

这是我正在获取的数据:

#install.packages("RISmed")
library(RISmed)
limit = 100
query = "Cardone L[AUTH]"
# build the Eutils object
search_query <- EUtilsSummary(query, type="esearch",db = "pubmed",mindate=1980, maxdate=2016, retmax=limit)
# now let's fetch authors
auths<-Author(EUtilsGet(search_query))
# to extract all the names in the LastName Initials format
Authors<-sapply(auths, function(x)paste(x$LastName,x$Initials))

但我真的没有考虑如何从作者字符串列表中为未来的 igraph 图形对象构建边和顶点数据帧

> head(Authors,3)
[[1]]
[1] "Cardone L"

[[2]]
 [1] "Carrella D"     "Manni I"        "Tumaini B"      "Dattilo R"      "Papaccio F"     "Mutarelli M"   
 [7] "Sirci F"        "Amoreo CA"      "Mottolese M"    "Iezzi M"        "Ciolli L"       "Aria V"        
[13] "Bosotti R"      "Isacchi A"      "Loreni F"       "Bardelli A"     "Avvedimento VE" "di Bernardo D" 
[19] "Cardone L"     

[[3]]
[1] "Ventre S"      "Indrieri A"    "Fracassi C"    "Franco B"      "Conte I"       "Cardone L"    
[7] "di Bernardo D"

感谢您的任何帮助

4

0 回答 0