Assigns a value to the track attribute.

emr_track.attr.set(track, attr, value)

Arguments

track

one or more track names

attr

one or more attribute names

value

on or more values (strings). Can be an empty string ('').

Value

None.

Details

This function creates a track attribute and assigns 'value' to it. If the attribute already exists its value is overwritten.

Note that both attributes and values should be in ASCII encoding.

Examples


emr_db.init_examples()
#> NULL
emr_track.attr.set("sparse_track", "test_attr", "value")
emr_track.attr.get("sparse_track", "test_attr")
#> [1] "value"