Description Usage Arguments Value Author(s) References See Also Examples
This function is an enhanced version of setNames
in the sense that the elements that already have names are not renamed.
1 | setMissingNames(object, nm)
|
object |
an object for which a names attribute will be meaningful |
nm |
a character vector of names to assign to the object |
An object of the same sort as object
with the new names
assigned to the unnamed elements.
Hadley Wickham, Kirill M<c3><bc>ller
http://stackoverflow.com/a/5043280/946850
setNames
1 | setMissingNames(c(a=1, b=2, 3), letters[2:4])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.