View source: R/copyAttributes.R
copyAttributes | R Documentation |
Copy Attributes Between Two Objects
copyAttributes(x, y, attrNames)
x |
object to which to copy attributes of y |
y |
object from which to copy attributes to x |
attrNames |
vector of character containing the names of attributes in
|
x <- structure(1, a = 2, b = 3)
y <- structure(2, c = 4)
copyAttributes(x, y, "c")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.