Description Usage Arguments Value Examples
Applies arbitrary setter functions to an object within a local scope and returns the object with attributes set.
1 | AssignAttr(x, attr, value)
|
x |
object |
attr |
name of attribute (character) |
value |
value of attribute |
The same object with attribute set to desired value.
1 2 3 4 5 | a <- cbind(1:2)
colnames(a) <- "numbers"
print(a)
b <- AssignAttr(cbind(1:2), "colnames", "numbers")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.