search for: npairs

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

Did you mean: pairs
2004 Jul 30
2
pairwise difference operator
...not very fruitful either. The closest I got to was a cryptic chunk of code in pairwise.table(). Since I do use something similar myself occasionally, I am hoping someone from the R-help list can suggest alternatives or past threads. Thank you. ### Code ### pairwise.difference <- function(m){ npairs <- choose( ncol(m), 2 ) results <- matrix( NA, nc=npairs, nr=nrow(m) ) cnames <- rep(NA, npairs) if(is.null(colnames(m))) colnames(m) <- paste("col", 1:ncol(m), sep="") k <- 1 for(i in 1:ncol(m)){ for(j in 1:ncol(m)){ if(j <= i) next;...
2003 Jul 24
1
geoR size limit problem
Hi all, I tried to produce some kriged surfaces with geoR (latest version). The size of the grid should be around 900 x 650 cells (what I find is not a very big grid), and the number of points is around 2500. The command krige.conv stopped after arround 5 min saying it can not allocate a vector with around 1.5 billion units. Sounds reasonable. Is there a workaround? How would I partition the