extract-efetch: EFetch accessors

Description Usage Arguments Value Examples

Description

Extract XML nodes from an efetch object.

Usage

1
2
3
4
5
## S4 method for signature 'efetch,character,missing'
x[i, j]

## S4 method for signature 'efetch,character'
x[[i]]

Arguments

x

An efetch object containing XML data.

i

An XPath expression specifying the XML nodes to extract.

j

Ignored.

Value

An XML node set.

Examples

1
2
3
4
5
## Not run: 
p <- efetch("195055", "protein", "gp", "xml")
p['//GBFeature[GBFeature_key="mat_peptide"]//GBQualifier_value']

## End(Not run)

gschofl/reutils documentation built on Oct. 9, 2020, 9:42 p.m.