attr(x, which) = y
A wrapper for attr(x, which) = y.
setAttribute(x, which, value)
x
[any] Your object.
which
[character(1)] Name of the attribute to set
character(1)
value
[ANY] Value for the attribute.
ANY
Changed object x.
setAttribute(list(), "foo", 1)