Skip to content
Snippets Groups Projects
Commit 5b0a64e8 authored by Francesco Sabatini's avatar Francesco Sabatini
Browse files

Fixed bug in A98 optimized

parent 64623ac5
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ PredExtr <- function(x.shp, myfunction=NA, output=NA,
return(nearest.tmp)
}
out[i.toassign,] <- mypredictor@data[nearest[,"ID"],]
out[i.toassign,] <- tmp.mypredictor@data[nearest[,"ID"],]
}
if(!is.na(output)) {write.csv(out, file = output)} else{return(out)}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment