[R] Simple question on replace a matrix row

anna lippelanna24 at hotmail.com
Sat Jan 30 00:01:24 CET 2010


David, I think I am going close to the problem, at the end of the function
ComputeSignalReturns I build the matrix summary with cbind. So when I make
class(summary) I get "matrix" but when I make class(summary[1,]) I get
"list"
Excuse me if I didn't show the problem the right way, I am still new and I
am trying to do my best
Here is one output of ComputeSignalReturns(summary):
                       A                   B               C                     
D               E       F     G        
one day    0.001754569       0.1754569      0.01713514      0.1018170     
100    46    0.46     
two days   0.003142898      0.3111469      0.02332515      0.1338922      
99     53    0.5353535
three days -0.0008794462   -0.08618573   0.02814039     -0.03230971     98    
45     0.4591837
five days  -0.0008868757    -0.08514007   0.03332889     -0.02809811     96    
3       0.40625  



-----
Anna Lippel
-- 
View this message in context: http://n4.nabble.com/Simple-question-on-replace-a-matrix-row-tp1427857p1439385.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list