我想了解過去5年中在PLOS Medicine雜誌上發表的8000位作者的名字。我只有他們的姓氏和他們的首字母縮寫。我也需要每個作者的名字!我試圖用「rplos」包來做到這一點。但是,每當我嘗試匹配用戶時,我都會遇到錯誤。我是R的新手,我可能做錯了什麼。使用Rplos軟件包在R中指定作者的姓氏
這裏是我的代碼:
library('rplos')
#This is the procedure for a single author's last name
t <- plosauthor(q='Wood', fl=c('id','author'), limit=2)
t <- data.frame(t)
#I wanna match 8.000 author's last names and tried this:
a <-read.csv("PLOSAuthors_List.csv", header= TRUE)
all_authors <- a$Last_Name
all_authors <- data.frame(all_authors)
#Then I try to iterate over all authors
for (i in all_authors) {
b <- plosauthor(q=all_authors, fl=c('id', 'author'), limit=2)
}
但不幸的是,我得到以下錯誤:
"Error in curl::curl_fetch_memory(url, handle = handle) : Failure when receiving data from the peer"
我不知道這意味着什麼,以及如何處理這個錯誤。
[爲什麼要接受一個答案?](HTTPS: //meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work)。接受答案可以幫助其他有相同問題的人。 – Masoud