Skip to content
Prev 7724 / 29559 Next

bug in process definition for retrieving point pair indexes from varigramCloud

Mark, the documentation falsely assumes all computers have 32 bits 
integers; yours seems not -- compare the .BigInt with sqrt(2^64). To see 
how the point pairs are obtained, look at:

 > gstat:::as.data.frame.variogramCloud
function (x, row.names, optional, ...)
{
    .BigInt = attr(x, ".BigInt")
    x$left = x$np%%.BigInt + 1
    x$right = x$np%/%.BigInt + 1
    x$np = NULL
    class(x) = "data.frame"
    x
}

so the .BigInt attribute is the divisor; 1 is added because the arrays 
are set up in the C code, starting at 0.
--
Edzer
Mark Connolly wrote: