Learn R Programming

easyPubMed (version 3.1.6)

EPM_reference_parse: Parse and Format References.

Description

Extract Reference Information form a raw XML string, typically extracted from a PubMed record. Users can select the type of identifier to extract and return, as well as the maximum number of references to be returned.

Usage

EPM_reference_parse(x, max_references = 100, id_type = "pmid")

Value

data.frame including one row for each author and n=4 columns: lastname, forename, address and email.

Arguments

x

String (character vector of length 1) including a List of references obtained from a PubMed record.

max_references

Numeric (of length 1). Maximum number of references to extract/include. This should be an integer `>=0`.

id_type

String (character vector of length 1). Type of identifier to be used for references. One of the following values is expected: `c('pmid', 'doi', 'pmc')`.

Author

Damiano Fantini, damiano.fantini@gmail.com

References

https://www.data-pulse.com/dev_site/easypubmed/

Examples

Run this code
ref <- paste0('',
              '25822800',
              'PMC4739640',
              '')
easyPubMed:::EPM_reference_parse(ref)
easyPubMed:::EPM_reference_parse(ref, id_type = 'pmc')

Run the code above in your browser using DataLab