Hi there !!

I have a matrix like 
> mm
      [,1] [,2] [,3]
 [1,]    1   11   21
 [2,]    2   12   22
 [3,]    3   13   23

I have a list of position index like 
> pos

$row1
[1] 1 3

$row2
[1] 3 2

$row3
[1] 1 3 2

I have a list of values like
> gty

$v1

 9  3 


$v2

 4  8 


$v3

 7  4  1 

 
Now i want to replace the value of each row in mm by pos list with value gty

> mm
      [,1] [,2] [,3]
 [1,]    9   11   3
 [2,]    8   12   4
 [3,]    7   1   4


Any suggestion regarding this problem will be very helpful .
Thank you. 

Best regards


........................... 
Tanvir Ahamed
Göteborg, Sweden
	[[alternative HTML version deleted]]

