Displaying 1 result from an estimated 1 matches for "116x116".
2009 Nov 30
3
bug or bizarre feature?
...ckern <- array(0,dim=c(udim,udim))
> diag(ckern) = wfun(uvec,slope,mobility)
Error in `diag<-`(`*tmp*`, value = c(0.992300064325398, 0.990746129315703, :
replacement diagonal has wrong length
It turns out that the array ckern has the wrong size for some reason.
Instead of 116x116, it is only 115x115.
> udim
[1] 116
> length(uvec)
[1] 116
> length(wfun(uvec,slope,mobility))
[1] 116
> dim(ckern)
[1] 115 115
The "taint" or whatever that is, is even transferable
> n <- udim
> n
[1] 116
> ckern <- array(0,dim=c(n,n))
> dim(ckern)
[1] 11...