set_tags | R Documentation |
This function changes the tags
of a safeframe
object, using the same
syntax as the constructor make_safeframe()
.
set_tags(x, ...)
x |
a |
... |
< |
The function returns a safeframe
object.
make_safeframe()
to create a safeframe
object
## create a safeframe
x <- make_safeframe(cars, mph = "speed")
tags(x)
## add new tags and fix an existing one
x <- set_tags(x, distance = "dist")
tags(x)
## remove tags by setting them to NULL
old_tags <- tags(x)
x <- set_tags(x, mph = NULL, distance = NULL)
tags(x)
## setting tags providing a list (used to restore old tags here)
x <- set_tags(x, !!!old_tags)
tags(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.