| varname | R Documentation |
Adds the class variable and an internal
attributes(x)[["varname"]] attribute to a vector.
varname(x, name)
x |
A vector to add a |
name |
A name to assign to |
Returns a vector of the class variable with a
attributes(x)[["varname"]] assigned.
varname(1:10, "A")
attributes(varname(1:10, "A"))
sum(varname(1:10, "A"))
varname(LETTERS, "Caps")
attributes(varname(LETTERS, "Caps"))
paste(varname(LETTERS, "Caps"), collapse="")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.