set_attribute: Add a set attribute activity
Description
Adds a new key/value attribute. The value should be numeric.
Usage
set_attribute(traj, key, value)
Arguments
key
the attribute key (is coerced to a string).
value
the value (should be numeric or a function which returns a numeric).
Value
The trajectory object.