Function either returns value of `attributes(obj)$added_as` (if TYPE is not provided)
OR
returns updated `obj` with addedd attribute if both conditions are fulfilled:
`TYPE` is provided and attribute is `NULL`. otherwise returns `obj` intact.
added_as(obj, TYPE = NULL, force.TYPE = FALSE)
An object to be updated
string to be added as attribute $added_as
if
$added_as
is not already present.
Logical. If TRUE
, value of attribute $added_as
is added or replaced even if obj
already has it.
If force.TYPE == TRUE, new value of `TYPE` will be added any way.
# [NO EXAMPLES YET]