[R] problems with matrix, list and other..

billycorg billycorg1 at virgilio.it
Fri Jun 15 11:30:46 CEST 2007


hi

can anyone help me to solve these problems?

i have:
1) "d" matrix with 1096 rows;
for example, 
d[2]=        
                   [,1]           [,2]          [,3]
[1,] 0.1192566 0.0000000 0.0000000
[2,] 0.0000000 0.1065938 0.0000000
[3,] 0.0000000 0.0000000 0.1038888

if I
class (d[2]) = "list" 
solve(d[2]) = error!!!

2) "e" list with 1096 rows;
for example
e[2]2=
[[1]]
[1] -1.0892216 -0.7304947 -1.2883680

d[2]%*%t(e[2])
this is the error: requires numeric matrix/vector arguments

i've tried to coerce "e" to a matrix, but it's doesn't work...

in the end.. i'd like this:
for (i in (1:1096)) {solve(d[i])*t(e[i])}

help me, please :)

Vincenzo
-- 
View this message in context: http://www.nabble.com/problems-with-matrix%2C-list-and-other..-tf3926701.html#a11135888
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list