This is a convenience function that sets the names on an object and returns the object. It is most useful at the end of a function definition where one is creating the object to be returned and would prefer not to store it under a name just so the names can be assigned.
setNames(object = nm, nm)
an object for which a
a character vector of names to assign to the object
An object of the same sort as
object with the new names assigned.
Douglas M. Bates and Saikat DebRoy
unname for removing names.
1 2 3 4 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.