Skip to content

Commit 4f07858

Browse files
committed
openaire area title cleanup
1 parent 9c237a5 commit 4f07858

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

server/preprocessing/other-scripts/openaire.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ preprocess_data <- function(all_artifacts){
144144
else {
145145
return (x)}
146146
})) # removes ;dk;atira;pure;researchoutput;pubmedpublicationtype;D013486
147+
# remove greater / smaller than signs
148+
all_artifacts$subject <- unlist(lapply(all_artifacts$subject, function(x) {gsub("&gt|&lt", "", x)}))
147149
all_artifacts$paper_abstract <- unlist(lapply(all_artifacts$paper_abstract, function(x){gsub("\\n", " ", x)}))
148150
all_artifacts$doi <- unlist(lapply(all_artifacts$doi, function(x) {str_replace_all(x, "[\r\n\t]" , "")}))
149151
return (all_artifacts)

0 commit comments

Comments
 (0)