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

View source: R/pmc_listrecords.R

pmc_listrecordsR Documentation

List the records in the PubMed Central metadata repository.

Description

List the records in the PubMed Central metadata repository.

Usage

  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

## 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 18, 2022, 7:31 p.m.