search for: 6cbcif2d

Displaying 2 results from an estimated 2 matches for "6cbcif2d".

1999 May 06
0
matrix weirdness
...5.000 NaN 5.000 6.000 0.490196 6.000 0.000 0.494485 6.000 1.000 0.495455 6.000 2.000 0.193032 6.000 3.000 0.272545 6.000 4.000 0.437288 6.000 5.000 0.490196 6.000 6.000 NaN ========================== I read them into a data frame and do the plot. data<-read.table("~/r/rt/data/unif/6cbcif2d.out",header=TRUE) x<-unique(data$lag1) y<-unique(data$lag2) z<-matrix(data$cif2d,length(y),length(x)) image(x,y,z, col=gray(0:19/19),xlab="Lag 1 (s)", ylab="Lag 2 (s)") Then I did: > z [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 17 16 8 11 12 10...
1999 May 06
1
x,y vs row,column
I think my problems are coused by a fundamental R incompatibility in how matrices are stored and the usual way of specifying Cartesian coordinates. When I do data<-read.table("~/r/rt/data/unif/6cbcif2d.out",header=TRUE) x<-unique(data$lag1) y<-unique(data$lag2) z<-matrix(data$cif2d,length(y),length(x)) This z matrix is printed apparently correctly from a Cartesian point of view > z [,1] [,2] [,3] [1,] 11 21 31 [2,] 12 22 32 [3,] 13 23 33 But if you look a...