Displaying 1 result from an estimated 1 matches for "preserved_".
Did you mean:
preserved
2008 Jan 08
1
storing matrices in a list or vector and preserve dimensions
...structure. I should be able to
retrieve the matrix from the list later on.
If I just append() the matrices to a list() object, they automatically
lose their dimensions, whereas I would like to preserve the dimensions
of the matrices.
Is there any function in R which allows me to store a _fully preserved_
object inside a list() or vector() structure?
thanks in advance,
Bram Kuijper
PS: this is what I do:
# two matrices, which are my objects to be put in the list
my_matrix_object1 <- matrix(data=rep(1,times=9),nrow=3,ncol=3);
my_matrix_object2 <- matrix(data=rep(0,times=9),nrow=3,ncol=3...