add_tags | R Documentation |
This function adds tags to an existing R object. The tags are stored as attributes of the object and can be later used to identify and manipulate the object. If the specified object does not exist in the specified environment, an error is thrown.
add_tags(x, ..., envir = parent.frame())
x |
The name of the object to tag (unquoted). |
... |
The tags to add to the object. |
envir |
The environment in which the object exists (defaults to the parent frame). |
No return value.
# create a vector and add some tags
x <- c(1, 2, 3)
add_tags(x, "foo", "bar")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.