My dataset is MNIST from Kaggle
I am trying to use the image function for visualization by counting the first digit in a training set. Unfortunately, I get the following error:
>image(1:28, 1:28, im, col=gray((0:255)/255)) Error in image.default(1:28, 1:28, im, col = gray((0:255)/255)) : 'z' must be numeric or logical
Adding multiple codes:
rawfile<-read.csv("D://Kaggle//MNIST//train.csv",header=T)
source share