Package: citecorp 0.3.2.9000
citecorp: Client for the Open Citations Corpus
Client for the Open Citations Corpus (<http://opencitations.net/>). Includes a set of functions for getting one identifier type from another, as well as getting references and citations for a given identifier.
Authors:
citecorp_0.3.2.9000.tar.gz
citecorp_0.3.2.9000.zip(r-4.5)citecorp_0.3.2.9000.zip(r-4.4)citecorp_0.3.2.9000.zip(r-4.3)
citecorp_0.3.2.9000.tgz(r-4.5-any)citecorp_0.3.2.9000.tgz(r-4.4-any)citecorp_0.3.2.9000.tgz(r-4.3-any)
citecorp_0.3.2.9000.tar.gz(r-4.5-noble)citecorp_0.3.2.9000.tar.gz(r-4.4-noble)
citecorp_0.3.2.9000.tgz(r-4.4-emscripten)citecorp_0.3.2.9000.tgz(r-4.3-emscripten)
citecorp.pdf |citecorp.html✨
citecorp/json (API)
NEWS
# Install 'citecorp' in R: |
install.packages('citecorp', repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/ropensci/citecorp/issues
Pkgdown site:https://docs.ropensci.org
On CRAN:citecorp-0.3.0(2020-04-16)
doimetadatacitationopencitationsbibtexcitationspmcidpmidsparql
Last updated 2 months agofrom:c654d22917 (on master). Checks:9 OK. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Mar 06 2025 |
R-4.5-win | OK | Mar 06 2025 |
R-4.5-mac | OK | Mar 06 2025 |
R-4.5-linux | OK | Mar 06 2025 |
R-4.4-win | OK | Mar 06 2025 |
R-4.4-mac | OK | Mar 06 2025 |
R-4.4-linux | OK | Mar 06 2025 |
R-4.3-win | OK | Mar 06 2025 |
R-4.3-mac | OK | Mar 06 2025 |
Exports:oc_coci_citationoc_coci_citesoc_coci_metaoc_coci_refsoc_doi2idsoc_lookup_checkoc_pmcid2idsoc_pmid2ids
Dependencies:crulcurldata.tablefauxpashttpcodejsonlitemimeR6Rcpptriebeardurltoolswhisker
Citation
To cite package ‘citecorp’ in publications use:
Chamberlain S, Selby D (2025). citecorp: Client for the Open Citations Corpus. R package version 0.3.2.9000, , https://github.com/ropensci/citecorp.
Corresponding BibTeX entry:
@Manual{, title = {citecorp: Client for the Open Citations Corpus}, author = {Scott Chamberlain and David Selby}, year = {2025}, note = {R package version 0.3.2.9000, }, url = {https://github.com/ropensci/citecorp}, }
Readme and manuals
citecorp
Client for the Open Citations Corpus http://opencitations.net/ (OCC)
OCC created their own identifiers called Open Citation Identifiers (oci), e.g.,
06180334099-06101759895
You are probably not going to be using oci identifiers, but rather DOIs
and/or PMIDs and/or PMCIDs. See ?oc_lookup
for methods for
cross-walking among identifier types.
If you’d like to use the OpenCitations Sparql endpoint yourself you can find that at http://opencitations.net/sparql
Install
CRAN version
install.packages("citecorp")
Development version
# remotes::install_github("ropensci/citecorp")
install.packages("citecorp", repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org'))
library("citecorp")
Methods for converting IDs
oc_doi2ids("10.1039/c9sc00991d")
#> doi paper pmcid
#> 1 10.1039/c9sc00991d https://w3id.org/oc/meta/br/061103888040 PMC6422012
#> 2 10.1039/c9sc00991d https://w3id.org/oc/meta/br/061103888040 PMC6422012
#> pmid
#> 1 31857888
#> 2 31859689
oc_pmid2ids("31857888")
#> doi paper pmcid
#> 1 10.1039/c9sc00991d https://w3id.org/oc/meta/br/061103888040 PMC6422012
#> 2 10.1039/c9sc02702e https://w3id.org/oc/meta/br/061103888040 PMC6422012
#> pmid
#> 1 31857888
#> 2 31857888
oc_pmcid2ids("PMC6422012")
#> doi paper pmcid
#> 1 10.1039/c9sc00991d https://w3id.org/oc/meta/br/061103888040 PMC6422012
#> 2 10.1039/c9sc00991d https://w3id.org/oc/meta/br/061103888040 PMC6422012
#> 3 10.1039/c9sc02702e https://w3id.org/oc/meta/br/061103888040 PMC6422012
#> 4 10.1039/c9sc02702e https://w3id.org/oc/meta/br/061103888040 PMC6422012
#> pmid
#> 1 31859689
#> 2 31857888
#> 3 31857888
#> 4 31859689
You can pass in more than one identifer to each of the above functions:
oc_doi2ids(oc_dois[1:6])
#> doi paper
#> 1 10.1097/rli.0b013e31821eea45 https://w3id.org/oc/meta/br/0630171503
#> 2 10.1111/j.2042-3306.1989.tb02167.x https://w3id.org/oc/meta/br/062601718144
#> 3 10.1128/jvi.00758-10 https://w3id.org/oc/meta/br/061401102284
#> 4 10.1016/s0168-9525(99)01798-9 https://w3id.org/oc/meta/br/062603752185
#> 5 10.1177/0148607114529597 https://w3id.org/oc/meta/br/061102146039
#> 6 10.1111/1567-1364.12217 https://w3id.org/oc/meta/br/06603713132
#> 7 10.1016/s0168-9525(99)01798-9 https://w3id.org/oc/meta/br/06170394225
#> pmid
#> 1 21577119
#> 2 2670542
#> 3 20702630
#> 4 10461200
#> 5 24711119
#> 6 25263709
#> 7 <NA>
COCI methods
OpenCitations Index of Crossref open DOI-to-DOI references
If you don’t load tibble
you get normal data.frame’s
library(tibble)
doi1 <- "10.1108/jd-12-2013-0166"
# references
oc_coci_refs(doi1)
#> # A tibble: 44 × 7
#> timespan citing creation oci author_sc journal_sc cited
#> * <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 P1Y10M10D 10.1108/jd-12-2013-0166 2015-03-09 0618… no no 10.5…
#> 2 P9Y2M5D 10.1108/jd-12-2013-0166 2015-03-09 0618… no no 10.1…
#> 3 P1Y5M 10.1108/jd-12-2013-0166 2015-03-09 0618… no no 10.1…
#> 4 P1Y5M 10.1108/jd-12-2013-0166 2015-03-09 0618… no no 10.1…
#> 5 P43Y 10.1108/jd-12-2013-0166 2015-03-09 0618… no no 10.1…
#> 6 P5Y10M20D 10.1108/jd-12-2013-0166 2015-03-09 0618… no no 10.1…
#> 7 P5Y2M27D 10.1108/jd-12-2013-0166 2015-03-09 0618… no no 10.1…
#> 8 P2Y0M 10.1108/jd-12-2013-0166 2015-03-09 0618… no no 10.1…
#> 9 P49Y7M9D 10.1108/jd-12-2013-0166 2015-03-09 0618… no no 10.1…
#> 10 P2Y2M 10.1108/jd-12-2013-0166 2015-03-09 0618… no no 10.1…
#> # ℹ 34 more rows
# citations
oc_coci_cites(doi1)
#> # A tibble: 34 × 7
#> timespan citing creation oci author_sc journal_sc cited
#> * <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 P6Y0M1D 10.7717/peerj-cs.421 2021-03… 0610… no no 10.1…
#> 2 P4Y8M16D 10.3233/ds-190019 2019-11… 0610… no no 10.1…
#> 3 P4Y8M16D 10.3233/ds-190016 2019-11… 0610… yes no 10.1…
#> 4 P3Y10M12D 10.3233/sw-180307 2019-01… 0610… no no 10.1…
#> 5 P1Y0M14D 10.3233/sw-160224 2016-03… 0610… yes no 10.1…
#> 6 P2Y4M 10.1057/s41275-017-0070-x 2017-08 0610… no no 10.1…
#> 7 P2Y11M20D 10.7287/peerj.preprints.… 2018-03… 0611… no no 10.1…
#> 8 P1Y11M5D 10.1101/108480 2017-02… 0613… no no 10.1…
#> 9 P3Y10M29D 10.59350/zcrhs-r7h02 2019-02… 0613… no no 10.1…
#> 10 P2Y 10.1007/978-3-030-01379-… 2018 0615… yes no 10.1…
#> # ℹ 24 more rows
# metadata
oc_coci_meta(doi1)
#> # A tibble: 1 × 13
#> oa_link issue reference source_title doi citation year citation_count title
#> * <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 "" 2 10.1136/… Journal Of … 10.1… 10.1057… 2015… 34 Sett…
#> # ℹ 4 more variables: page <chr>, source_id <chr>, volume <chr>, author <chr>
Meta
- Please report any issues or bugs
- License: MIT
- Get citation information for
citecorp
in R doingcitation(package = 'citecorp')
- Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Help Manual
Help page | Topics |
---|---|
citecorp | citecorp-package citecorp |
COCI: OpenCitations Index of Crossref open DOI-to-DOI references | oc_coci oc_coci_citation oc_coci_cites oc_coci_meta oc_coci_refs |
Vector of 25 DOIs (Digital Object Identifiers) | oc_dois |
Methods for getting IDs from other IDs | oc_doi2ids oc_lookup oc_pmcid2ids oc_pmid2ids |
Vector of 8 PMCIDs (PubMed Central Identifiers) | oc_pmcids |
Vector of 24 PMIDs (PubMed Identifiers) | oc_pmids |