Functions to get and set the keys of an object of class BibEntry
# S3 method for BibEntry
names(x) <- value# S3 method for BibEntry
names(x)
names<-
the updated BibEntry object.
names
- character vector of the keys of the BibEntry object.
an object of class BibEntry
character vector of new key values to replace into x
McLean, M. W. mathew.w.mclean@gmail.com
if (requireNamespace("bibtex")) {
bib <- ReadBib(system.file("Bib", "test.bib", package = "RefManageR"))
names(bib)
names(bib)[1] <- 'newkey'
}
Run the code above in your browser using DataLab