ropensci/crevents

Name: crevents

Owner: rOpenSci

Owner: rOpenSci Labs

Description: Client for the Crossref Event Data API

Created: 2016-09-28 02:02:45.0

Updated: 2018-05-14 17:54:41.0

Pushed: 2018-05-14 17:54:40.0

Homepage:

Size: 34

Language: R

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

crevents

Build Status

crevents Crossref events data R client

Crossref Events Data docs - https://www.eventdata.crossref.org/guide/index.html

Installation
all.packages("devtools")
ools::install_github("ropenscilabs/crevents")

ary('crevents')
query
_query(rows = 10)
status
1] "ok"

`message-type`
1] "event-list"

message
message$`next-cursor`
1] "355eb688-f526-46a6-9396-993c12cc313c"

message$`total-results`
1] 69116172

message$`items-per-page`
1] 10

message$events
 A tibble: 10 x 21
  lice? obj_? sour? occu? subj? id    evid? terms acti? sour? time? rela?
* <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
1 http? http? 45a1? 2017? http? 90dd? /evi? http? add   twit? 2017? disc?
2 http? http? 45a1? 2017? http? 68fb? /evi? http? add   twit? 2017? disc?
3 http? http? 45a1? 2017? http? 6273? /evi? http? add   twit? 2017? disc?
4 http? http? 45a1? 2017? http? 4a41? /evi? http? add   twit? 2017? disc?
5 http? http? 45a1? 2017? http? 3bb6? /evi? http? add   twit? 2017? disc?
6 http? http? 45a1? 2017? http? 1156? /evi? http? add   twit? 2017? disc?
7 http? http? 45a1? 2017? http? d5a8? /evi? http? add   twit? 2017? disc?
8 http? http? 45a1? 2017? http? 48a5? /evi? http? add   twit? 2017? disc?
9 http? http? 45a1? 2017? http? 49a6? /evi? http? add   twit? 2017? disc?
0 http? http? 45a1? 2017? http? 355e? /evi? http? add   twit? 2017? disc?
 ... with 9 more variables: subj.pid <chr>, subj.title <chr>, subj.issued
   <chr>, `subj.original-tweet-url` <chr>, `subj.original-tweet-author`
   <chr>, `subj.alternative-id` <chr>, subj.author.url <chr>, obj.pid
   <chr>, obj.url <chr>

Limit to events from Reddit

 cred_query(rows = 10, filter = list(source = "reddit"))
ssage$events
 A tibble: 10 x 18
  lice? obj_? sour? occu? subj? id    evid? terms acti? sour? time? rela?
* <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
1 http? http? a6c9? 2016? http? e37e? http? http? add   redd? 2017? disc?
2 http? http? a6c9? 2016? http? c831? http? http? add   redd? 2017? disc?
3 http? http? a6c9? 2016? http? 783b? http? http? add   redd? 2017? disc?
4 http? http? a6c9? 2016? http? 61ce? http? http? add   redd? 2017? disc?
5 http? http? a6c9? 2014? http? f0aa? http? http? add   redd? 2017? disc?
6 http? http? a6c9? 2014? http? ca49? http? http? add   redd? 2017? disc?
7 http? http? a6c9? 2014? http? c809? http? http? add   redd? 2017? disc?
8 http? http? a6c9? 2014? http? bdfe? http? http? add   redd? 2017? disc?
9 http? http? a6c9? 2014? http? 8412? http? http? add   redd? 2017? disc?
0 http? http? a6c9? 2016? http? 3c49? http? http? add   redd? 2017? disc?
 ... with 6 more variables: subj.pid <chr>, subj.type <chr>, subj.title
   <chr>, subj.issued <chr>, obj.pid <chr>, obj.url <chr>
Meta

ropensci_footer


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.