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

From: billycorg <billycorg1_at_virgilio.it>
Date: Fri, 15 Jun 2007 02:29:37 -0700 (PDT)

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 ;
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.

______________________________________________
R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 15 Jun 2007 - 09:35:07 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 15 Jun 2007 - 13:32:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.