Learn R Programming

RefManageR (version 1.4.0)

$.BibEntry: Extract fields from a BibEntry object

Description

used to extract a single field from each entry in a BibEntry object

Usage

# S3 method for BibEntry
$(x, name)

Value

a named list of values for the field specified by name for each entry; NULL if the field is not present for a particular entry. The names attribute of the returned list contains the entry keys (potentially back-quoted).

Arguments

x

an object of class BibEntry

name

the field to extract

See Also

Other operators: $<-.BibEntry(), +.BibEntry(), [.BibEntry(), [<-.BibEntry(), [[.BibEntry(), [[<-.BibEntry(), c.BibEntry()

Examples

Run this code
if (requireNamespace("bibtex")) {
    file.name <- system.file("Bib", "biblatexExamples.bib", package="RefManageR")
    bib <- suppressMessages(ReadBib(file.name))
    bib[[50:55]]$author
    bib[[seq_len(5)]]$bibtype
 }

Run the code above in your browser using DataLab