Description Usage Arguments Value Examples
Add label attribute to a vector.
1 | add_label(.x, .label)
|
.x |
A vector |
.label |
A character vector of length 1. Label of the vector. |
A labelled vector (i.e. a vector with label
attribute)
1 2 3 4 5 6 7 | ## Not run:
v <- 1:3
v <- add_label(v, "Some numbers")
v
attributes(v)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.