I\'m trying to make prediction on pixel level for a set of images with a trained model in R, the code below works fine:
for (i in 1:dimx) { for