BASE$set_attr {bandicoot}R Documentation

Set value of an attribute or a method

Description

This function sets the value of an attribute or a method.

Usage

BASE$set_attr(attr_name, attr_val)

Arguments

attr_name

Character. Attribute name.

attr_val

Any value.

Value

Return the object itself.

Examples


test <- BASE$instantiate()
test$set_attr("x", 1)
test$x

[Package bandicoot version 1.0.0 Index]