View source: R/special-attributes.R
set_lb_attribute | R Documentation |
Takes an object, attribute name, and a value and sets a special libbib attribute by reference
set_lb_attribute(x, type, value)
x |
An object to set the attribute on |
type |
The name of the attribute to set. |
value |
The value of the attribute |
Nothing, since the object is modified by reference.
set_lb_attribute(mtcars, "source", "R built-in dataset")
versicolor <- iris[iris$Species=="versicolor", ]
set_lb_attribute(versicolor, "note", "modified built-in dataset")
attributes(versicolor)$lb.note
# [1] "modified built-in dataset"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.