In Stata 16 you could code:
table ..., replace
to replace the data in memory with the results produced by the table command.

Is there an alternative in Stata 17, or a way to convert results from a collection to data?

Regards Kim