powered by
This function sets the value of an attribute or a method.
BASE$set_attr(attr_name, attr_val)
Return the object itself.
Character. Attribute name.
Any value.
test <- BASE$instantiate() test$set_attr("x", 1) test$x
Run the code above in your browser using DataLab