search for: tp1748285p1748285

Displaying 1 result from an estimated 1 matches for "tp1748285p1748285".

2010 Apr 01
1
Using a Data Frame/Matrix outside a function
...) + for(i in 1:r) { + for (j in 1:c) { + if(i==j) b[i, j] <- i + } + } + } > > data.out(5, 5) > diag(b) Error in diag(b) : object 'b' not found > -- View this message in context: http://n4.nabble.com/Using-a-Data-Frame-Matrix-outside-a-function-tp1748285p1748285.html Sent from the R help mailing list archive at Nabble.com.