search for: jj3

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

Did you mean: j3
2004 Jul 28
6
elegant matrix creation
...0:2,0:2,"+")%%3,matrix(1,1,3))) I want to reproduce the following matrices in an equivalent way: jj2 <- matrix(c(1,2,3,1,2,3,1,2,3,2,3,1,2,3,1,2,3,1, 1,2,3,1,2,3,1,2,3,3,1,2,3,1,2,3,1,2,1,2,3,1,2, 3,1,2,3,3,1,2,3,1,2,3,1,2,2,3,1,2,3,1,2,3,1,3, 1,2,3,1,2,3,1,2,2,3,1,2,3,1,2,3,1),9,9) jj3 <- structure(c(1,2,3,2,3,1,3,1,2,1,2,1,2,3,2,3,1, 3,1,3,1,2,1,2,3,2,3,2,3,1,3,1,2,1,2,3,2,3, 2,3,1,3,1,2,1,2,1,2,3,2,3,1,3,1,3,1,2,1,2, 3,2,3,1,3,1,3,1,2,1,2,3,2,3,2,3,1,3,1,2,1, 2),.Dim = as.integer(c(9,9))) [ note that jj1-jj3 each have precisely 3 occurrences of A, B, and C along each row, c...
2005 Jun 24
1
r programming help II
Dear List, Suppose we have a variable K.JUN defined as (with 1=wet, 0=dry): K.JUN1984 = c(1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1) K.JUN1985 = c(0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1) K.JUN1986 = c(0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1)