try this:
myDat - read.table(textConnection(group id
1 101
1 201
1 301
2 401
2 501
2 601
3 701
3 801
3 901),header=TRUE)
closeAllConnections()
corr_mat -as.matrix(read.table(textConnection(1 1 .5 0 0 0 0
0 0 0
2 .5 1 0 0 0 0 0 0 0
3 00 1.0 0 0 0 0 0 0
Hi List,
Here is some example data.
myDat - read.table(textConnection(group id
1 101
1 201
1 301
2 401
2 501
2 601
3 701
3 801
3 901),header=TRUE)
closeAllConnections()
corr_mat -read.table(textConnection(1 1 .5 0 0 0 0 0 0 0
2 .5 1 0 0 0 0 0 0 0
3 00 1.0 0
2 matches
Mail list logo