Learn R Programming

rcrossref (version 0.3.0)

cr_members: Search CrossRef members

Description

Search CrossRef members

Usage

cr_members(member_ids = NULL, query = NULL, filter = NULL,
  offset = NULL, limit = NULL, sample = NULL, sort = NULL,
  order = NULL, facet = FALSE, works = FALSE, .progress = "none", ...)

Arguments

member_ids
One or more member ids. See examples. ALternatively, you can query for them using the query parameter.
query
Query terms
filter
Filter options. See details.
offset
Number of record to start at, from 1 to infinity.
limit
Number of results to return in the query. Not relavant when searching with specific dois. Default: 20. Max: 1000
sample
(integer) Number of random results to return. when you use the sample parameter, the rows and offset parameters are ignored.
sort
(character) Field to sort on, one of score, relevance, updated, deposited, indexed, or published.
order
(character) Sort order, one of 'asc' or 'desc'
facet
(logical) Include facet results.
works
(logical) If TRUE, works returned as well, if not then not.
.progress
Show a plyr-style progress bar? Options are "none", "text", "tk", "win, and "time". See create_progress_bar for details of each.
...
Named parameters passed on to GET

Details

BEWARE: The API will only work for CrossRef DOIs.

References

https://github.com/CrossRef/rest-api-doc/blob/master/rest_api.md

Examples

Run this code
cr_members(member_ids=98)
cr_members(member_ids=340)

cr_members(member_ids=98, works=TRUE)
cr_members(member_ids=c(10,98,45,1,9))
cr_members(member_ids=c(10,98,45,1,9), works=TRUE)

cr_members(query='hindawi')
cr_members(query='ecology')

# facets
cr_members(member_ids=98, works=TRUE, facet=TRUE)

# curl options
library('httr')
cr_members(member_ids=98, config=verbose())

# data not found
cr_members(query="adfdf")
cr_members(member_ids=c(323234343434,3434343434), works=TRUE, facet=TRUE)
cr_members(member_ids=c(323234343434,3434343434,98), works=TRUE, facet=TRUE)

Run the code above in your browser using DataLab