Last chance! 50% off unlimited learning
Sale ends in
Operator for extracting BibEntry objects by index.
# S3 method for BibEntry
[[(x, i, drop = FALSE)
a BibEntry object
numeric indices of entries to extract, or a character vector of keys corresponding to the entries to be extracted.
logical, should attributes besides class be dropped from result?
an object of class BibEntry.
Other operators: $.BibEntry
,
$<-.BibEntry
, +.BibEntry
,
[.BibEntry
, [<-.BibEntry
,
[[<-.BibEntry
, c.BibEntry
# NOT RUN {
file.name <- system.file("Bib", "biblatexExamples.bib", package="RefManageR")
bib <- suppressMessages(ReadBib(file.name))
bib[[20:21]]
bib[c("hyman", "loh")]
## Note this is FALSE because [[ does not inherit from the dropped parent entry while [ does.
identical(bib[1], bib[[1]])
# }
Run the code above in your browser using DataLab