You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (returnDist) {
w<-wm+ (length(wm) * (as.numeric(names(wm)) -1))
l<-list(ID=.SD[[1]][as.numeric(names(wm))],
NN=.SD[[1]][wm],
distance=distMatrix[w])
} else {
l<-list(ID=.SD[[1]][as.numeric(names(wm))],
NN=.SD[[1]][wm])
}
l
The if/else block here depends on a variable ("returnDist") passed to the function, that is set outside of the data.table chunk and doesn't change within it.
Three warnings/errors for
edge_dist
andedge_nn
:longer object length is not a multiple of shorter object length
Different branches of j expression produced different auto-named columns: [NA!=distance]; using the most "last" names
When "returnDist" is TRUE, this error is added:
Internal error: jvnames is length 2 but ans is 4 and bynames is 1
The text was updated successfully, but these errors were encountered: