Skip to content

Commit

Permalink
added back extract_doi_id()
Browse files Browse the repository at this point in the history
  • Loading branch information
MM committed Aug 19, 2024
1 parent 521f5be commit 42b5096
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fun.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ render_json <- function(df,date){
return(json)
}

extract_doi_id <- function(url){
return(gsub("http(|s)://dx.doi.org/", "", url))
}

strip_html <- function(str) {
if(is.null(str)) return(NA)
else {
Expand Down

0 comments on commit 42b5096

Please sign in to comment.