[R] geoR: trend.spatial

2014-03-12 Thread olga30dec
Dear all, I am aiming to conduct glsm kriging using glsm.krige function (geoRglm package). I encounter a problem, which I have seen many times on the mailing list, but nevertheless I can't figure out what goes wrong. Any pointers would be great. Thanks, Olga pred<-NULL krva

[R] permutation of vectors (1 or 0)

2012-12-20 Thread olga30dec
Dear all, I have 2 vectors of 10 elements, each of them contains either 0 or 1, like following: > Null<-rep(0,10) > Null [1] 0 0 0 0 0 0 0 0 0 0 > One<-rep(1,10) > One [1] 1 1 1 1 1 1 1 1 1 1 How can I obtain a matrix rows of which can take all possible combinations? e.g. 0 0 0 0 0 0 0 0 0 0