pmc_getrecord: Retrieve an individual record from the PubMed Central...

Description Usage Arguments Examples

View source: R/pmc_getrecord.R

Description

Retrieve an individual record from the PubMed Central repository.

Usage

1
2
3
  pmc_getrecord(id = NULL, transform = TRUE,
    prefix = "oai_dc",
    url = "http://www.pubmedcentral.gov/oai/oai.cgi")

Arguments

prefix

The prefix to use, one of: "oa_dc" (Dublin Core metadata format), "pmc_fm" (PMC front matter metadata format), or "pmc" (full text for open access content only)

id

DataCite identifier, e.g., "56225"

transform

transform metadata to list (TRUE/FALSE)

url

the base url for DataCite (leave to default)

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
out <- pmc_getrecord(152494, T)
out$metadata # get $identifier, $datestamp, $setSpec, or $metadata
oaih_transform(out$metadata) # transform only metadata to a list

# Full text
pmc_getrecord(156895, T, "pmc")

## End(Not run)

ropensci/rpmc documentation built on May 16, 2018, 7:06 a.m.