get_publications.publication | R Documentation |
This works for records without publicationids. We assume that data with publicationids is correct.
## S3 method for class 'publication'
get_publications(x, ...)
x |
integer A publication |
... |
|
updated publication
object
# Take a publication object and purposely degrade the metadata:
bad_pub <- get_publications(666)
# Note this only changes the reported year, not the citation string.
bad_pub[[1]]@year <- "1923"
bad_pub[[1]]@publicationid <- as.character(NA)
updated_pubs <- get_publications(bad_pub[[1]])
attr(updated_pubs, "matches")
# we see the proper citation in the record:
updated_pubs <- attr(updated_pubs, "matches")[[3]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.