Skip to content

Commit af25a37

Browse files
committed
update 2023-05-02 for preprints posted up until 2023-04-30. Dataset archived on Figshare.
1 parent d121cab commit af25a37

7 files changed

+7
-5
lines changed

covid19_preprints.Rmd

+4-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Note: run update from previous sample date (inclusive) to ensure no records are
4747
```{r}
4848
4949
sample_date_until <- Sys.Date()
50-
#sample_data_until <- as.Date("2022-11-03")
50+
#sample_data_until <- as.Date("2023-04-30")
5151
5252
posted_date_until <-floor_date(sample_date_until, "week") #set to last Sunday prior to sample date
5353
@@ -276,6 +276,7 @@ rm(covid_preprints_previous)
276276
277277
#crawl SSRN to retrieve posted dates
278278
cr_ssrn_covid <- cr_ssrn_covid %>%
279+
filter(is.na(posted_date)) %>%
279280
# Retrieve 'real' posted dates from the SSRN website. Warning: slow
280281
mutate(posted_date = ymd(map_chr(identifier, getSSRNPublicationDate)),
281282
source = "SSRN") %>%
@@ -284,6 +285,7 @@ cr_ssrn_covid <- cr_ssrn_covid %>%
284285
285286
rm(cr_ssrn_df)
286287
288+
287289
```
288290

289291
The datasets derived from "posted-content" and from SSRN are merged to a final Crossref dataset
@@ -475,7 +477,7 @@ dc_covid <- dc_preprints_df %>%
475477
# Select only relevant fields with unique values
476478
distinct(source, identifier, identifier_type, posted_date, title, abstract)
477479
478-
rm(dc_preprints_df)
480+
rrm(dc_preprints_df)
479481
480482
```
481483

data/metadata.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"release_date": "2023-04-30",
3-
"sample_date": "2023-03-02",
4-
"posted_date": "2023-02-26",
2+
"release_date": "2023-05-02",
3+
"sample_date": "2023-04-30",
4+
"posted_date": "2023-04-30",
55
"url_data": "https://doi.org/10.6084/m9.figshare.22707346",
66
"url_repository": "https://github.com/nicholasmfraser/covid19_preprints"
77
}
12.1 KB
Loading
Loading
Loading
5.29 KB
Loading
6.33 KB
Loading

0 commit comments

Comments
 (0)
close