search for: mehdi_ghafariyan

Displaying 2 results from an estimated 2 matches for "mehdi_ghafariyan".

2000 Sep 19
3
coerce mode list?
Dear R/S users; I'm using S+ version 4 Release 3. and I am trying to do a simple calculation like the following : > X1<-X[1:5] > W1<-W[1:5,1:5] > X1 [1] 1.250000 1.292308 1.176471 0.937500 1.538462 > W1 VAR00003 VAR00004 VAR00005 VAR00006 VAR00007 1 0 1 0 1 0 2 1 0 0 0 1 3 0 0 0
2000 Sep 21
2
adjacency matrix
Hi all; I have two vectors A=c(5,2,2,3,3,2) and B=c(2,3,4,5,6,1,3,2,4,3,1,5,1,4,6,1,4) and I want to make the following matrix using the information I have from the above vectors. 0 1 1 1 1 1 1 0 1 0 0 0 0 1 0 1 0 0 1 0 1 0 1 0 1 0 0 1 0 1 1 0 0 1 0 0 so the first vector says that I have 6 elements therefor I have to make a 6 by 6 matrix and then I have to read 5 elements from the