nameMe | R Documentation |
This function gets a vector and a name(s), and returns the vector with the names assigned.
nameMe(x, names)
x |
A vector (of any type) |
names |
A vector of names, with the same length as |
This function is useful when one uses c() to concatenate complex arguments, but does not want to assign these to temporary objects in order to name them.
Just x
with the names
assigned.
c(one=10, nameMe(c(3.14, 5), c("two", "three")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.