te_matrix(da[matno])
}
and refer to
mat$mat_no
etc.
- Original Message
From: Bert Gunter <[EMAIL PROTECTED]>
To: Erik Iverson <[EMAIL PROTECTED]>; Gundala Viswanath <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Sent: Thursday, July 31, 2008 7:56:49 PM
Subject: Re:
rs,
Bert Gunter
Genentech, Inc.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Erik Iverson
Sent: Thursday, July 31, 2008 7:01 PM
To: Gundala Viswanath
Cc: [EMAIL PROTECTED]
Subject: Re: [R] Storing Matrices into Hash
I think a named list is probably the easie
Gundala Viswanath wrote:
Thanks so much Erik,
But how do you include that in a loop.
I tried this, doesn't seem to work. Please advice:
__BEGIN__
all_mat <- NULL
for (matno in 1:10) {
mat <- process_to_create_matrix(da[matno])
all_mat <- list(all_post, matno = mat)
}
I'm not exac
Thanks so much Eric,
But how do you include that in a loop.
I tried this, doesn't seem to work. Please advice:
__BEGIN__
all_mat <- NULL
for (matno in 1:10) {
mat <- process_to_create_matrix(da[matno])
all_mat <- list(all_post, matno = mat)
}
print(all_mat) # it gives funny structure
I think a named list is probably the easiest way to start off, something
like:
all_mat <- list(mat1 = mat1, mat2 = mat2)
all_mat$mat2
Gundala Viswanath wrote:
Hi,
Suppose I have these two matrices (could be more).
What I need to do is to store these matrices into a hash.
So that I can cal
Hi,
Suppose I have these two matrices (could be more).
What I need to do is to store these matrices into a hash.
So that I can call back any of the matrix back later.
Is there a way to do it?
> mat_1
[,1][,2]
[1,] 9.327924e-01 0.067207616
[2,] 9.869321e-01 0.013067929
6 matches
Mail list logo