Description Usage Arguments Author(s)
This function swaps the name of an R object between two of its attributes. Objects need to have at least to character objects to use this function. Typically one character object should be equal to the objects original name in order to be able to swap back to the old name.
1 | swapObjectName(x, attr1 = "tskey", attr2 = "fameKey")
|
x |
R object or character name of an object |
attr1 |
name of the first attribute. Default is 'tskey'. Typically the name of this attribute is equal to the initial object name |
attr2 |
name of the second attribute. Object will change its name to the value of this second attribute. Default value is 'fameKey' |
Matthias Bannert
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.