first of all take a look at the object you created:
> df.list <- vector("list", 3)
>
>
> for(i in 1:3){
+ assign(paste("s",i, sep=""),matrix(0, nrow = 20, ncol = 5, byrow
+ = FALSE, dimnames = NULL))
+ }
>
> # and then insert them with a loop like this
>
> # put matrices names in a vector
> matri
Hi there,
I cannot seem to figure out how to access the elements of a list if those
elements are a matrix.
For example I have a the following list
df.list <- vector("list", 3)
and I have made each of the elements a matrix as follows
for(i in 1:3){
assign(paste("s",i, sep=""),matrix(0, nrow =
2 matches
Mail list logo