$<-.BibEntry | R Documentation |
Used to replace the values stored for a specified field in a BibEntry object.
## S3 replacement method for class 'BibEntry'
x$name <- value
x |
a BibEntry object |
name |
string; the field to assign the new values to. |
value |
character vector; the replacement field values to be assigned. |
an object of class BibEntry with the updated fields.
The method expects date and name list fields to be in the format
expected by Biblatex. The
field specified by name
does not have to be one currently in x
.
Other operators:
$.BibEntry()
,
+.BibEntry()
,
[.BibEntry()
,
[<-.BibEntry()
,
[[.BibEntry()
,
[[<-.BibEntry()
,
c.BibEntry()
bib <- BibEntry(bibtype = "misc", key = "mclean", author = "Mathew W. McLean",
title = "My Work", year = "2012")
bib$year <- 2014
bib$author <- "McLean, M. W. and Carroll, R. J."
bib$url <- "https://example.com"
bib
bib <- c(bib, as.BibEntry(citation()))
bib[1]$author[2] <- person(c("Raymond", "J."), "Carroll")
bib$author
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.