Skip to content

Commit

Permalink
fix: incorrect gstat formula generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajic committed Jul 10, 2024
1 parent bfb96a0 commit 348974b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/kriging.R
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ setMethod(
# model to use
model <- gstat::gstat(
id = feat,
formula = as.formula(paste(feat, "~ 1")),
formula = as.formula(sprintf("`%s` ~ 1"), feat),
locations = ~ sdimx + sdimy,
data = annotatedlocs,
nmax = 7,
Expand Down

0 comments on commit 348974b

Please sign in to comment.