I get some data frames with different dimensions from a loop - an example :
x <- 3:5
for(i in seq_along(x)){
x_ <- x[i]
W <- data.frame(matrix(x_,nrow=x_,ncol=x_))
print(W)
}
expanded above to show how to save each into a list:
x <- 3:5
big_list <- list()
for(i in seq_along(x)){
x_ <- x[i]
W <- list(data.frame(matrix(x_,nrow=x_,ncol=x_)))
big_list <- append(big_list,W)
}
str(big_list)
big_list
please note the use of triple back ticks on a new line
```
code here
```
to format the code.
The forum does not recognise </>