Hi,

I have a file like this:
1 2 0.1
2 3 0.2
3 1 0.3

And I want to read it to create a matrix like this:
     [,1]     [,2]    [,3]
[1,]    0       0.1     0
[2,]    0       0        0.2
[3,]    0.3    0        0

How can I do it efficiently? Thanks.
-- 
Best,
Zhenjiang

	[[alternative HTML version deleted]]

