pmc_listrecords: List the records in the PubMed Central metadata repository.

Description Usage Arguments Examples

View source: R/pmc_listrecords.R

Description

List the records in the PubMed Central metadata repository.

Usage

1
2
3
  pmc_listrecords(from = NULL, until = NULL, set = NULL,
    prefix = "oai_dc", token = NULL, transform = TRUE,
    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)

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
10
11
## Not run: 
out <- pmc_listrecords(from = '2001-03-22', until = '2001-03-22', transform=T)
nrow(out) # number of records
out[3,] # a single record

# Drop deleted records and extract the metadata.
mout <- out[, "metadata"]
mout[1:3] # recors one through three
oaih_transform(mout[[1]]) # convert XML to a list

## End(Not run)

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