I want to create 100 tables in batches and preallocate enough underlying memory for them. In addition to using the for loop to dynamically add elements, is there any way more convenient?
//initialize tables list_tables
list_tables=[table(150000:0, `trade_day`secu_code`factor_value, `INT`INT`DOUBLE),
table(150000:0, `trade_day`secu_code`factor_value, `INT`INT`DOUBLE),
table(150000:0, `trade_day`secu_code`factor_value, `INT`INT`DOUBLE),
table(150000:0, `trade_day`secu_code`factor_value, `INT`INT`DOUBLE),
table(150000:0, `trade_day`secu_code`factor_value, `INT`INT`DOUBLE)]
You can use function
eachandlambdato create multiple tables.