I would like to predict soil classes with artificial neural network (ANN) in the R environment. I train my model with neuralnet package. When using the predict function, I will only get the probability map for soil classes, not the class-map itself. Even though, in predict function, I specified type="class". So, how can I get the pure classes?