Skip to content

Commit

Permalink
solved issue #38
Browse files Browse the repository at this point in the history
  • Loading branch information
massimoaria committed Feb 13, 2019
1 parent 7b508da commit 1b7dc05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/citations.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ citations <- function(M, field = "article", sep = ";"){
if (M$DB[1]=="ISI"){
listCR=lapply(listCR, function(l){
ListL=lapply(strsplit(unlist(l),","),function(x) x[1])
l=unlist(ListL)
l=trimws(trimES(gsub("[[:punct:]]"," ",unlist(ListL))))
})}
if (M$DB[1]=="SCOPUS"){
listCR=lapply(listCR, function(l){
Expand All @@ -67,7 +67,7 @@ citations <- function(M, field = "article", sep = ";"){
if (length(ind)==0) ind=1
x=unlist(a[[1]][1:(ind[1]-1)])
})
l=unlist(ListL)
l=trimws(trimES(gsub("[[:punct:]]"," ",unlist(ListL))))
})}
}
CR=unlist(listCR)
Expand Down

0 comments on commit 1b7dc05

Please sign in to comment.