Suppose I want to dynamically create data tables in a loop, for example:
for(i in 1:3){
paste0('a',i)= data.table(x=1)
}
This returns an error. What is the syntax to do this properly?
Suppose I want to dynamically create data tables in a loop, for example:
for(i in 1:3){
paste0('a',i)= data.table(x=1)
}
This returns an error. What is the syntax to do this properly?