setAttribute {BBmisc} | R Documentation |
attr(x, which) = y
.A wrapper for attr(x, which) = y
.
setAttribute(x, which, value)
x |
[any] |
which |
[ |
value |
[ |
Changed object x
.
setAttribute(list(), "foo", 1)
## list()
## attr(,"foo")
## [1] 1