I would like to use a Dataset to track the process of a lengthy calculation over a large volume of material. Dataset appeals to me because of the power of the queries and it also looks like it may offer a simple way to serialize results to a data store.
I have not been able to figure out how to programmatically add rows to an existing Dataset.
If I initialize a Dataset named eMap:
eMap = Dataset[{<|"ModuleId"->0,
"SegmentId"->0,
"x1"->0, "y1"->0, "z1"->0,
"x2"->0, "y2"->0, "z2"->0|>}]
How would I programmatically add an additional row with the same columns to eMap so that eMap may be queried?
I have tried Append and AppendTo without success.
eMap = AppendTo[eMap, {<|"ModuleId"->0,
"SegmentId"->0,
"x1"->0, "y1"->0, "z1"->0,
"x2"->0, "y2"->0, "z2"->0|>}]];
After the call above, if I issue:
eMap[1]
I get an error: Cannot apply Append to an expression of the form {__Association}.