Assigns value to a track attribute.
gtrack.attr.set(track = NULL, attr = NULL, value = NULL)
track name
attribute name
value
None.
This function creates a track attribute and assigns 'value' to it. If the attribute already exists its value is overwritten.
If 'value' is an empty string the attribute is removed.
Error is reported on an attempt to modify a value of a read-only attribute.
# \dontshow{
options(gmax.processes = 2)
# }
gdb.init_examples()
gtrack.attr.set("sparse_track", "test_attr", "value")
gtrack.attr.get("sparse_track", "test_attr")
#> [1] "value"
gtrack.attr.set("sparse_track", "test_attr", "")