Skip to content

Commit f5926e8

Browse files
committed
fix #145
1 parent f033960 commit f5926e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/predict.gstat.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function (object, newdata, block = numeric(0), nsim = 0, indicators = FALSE,
162162
as.double(as.vector(new.X[perm,])),
163163
as.integer(block.cols), as.vector(block), as.vector(bl_weights),
164164
as.integer(nsim), as.integer(BLUE))[[1]]
165-
if (nsim == 1)
165+
if (abs(nsim) == 1)
166166
colsel = seq(1, by=2, length.out=nvars) # pred1 var1 pred2 var2 ...
167167
else
168168
colsel = TRUE

0 commit comments

Comments
 (0)