I am quite new to R and I am trying to perform the following loop:
#1.Compare each of the n rows of my matrix X with a X.prototype matrix.
#2.Find the closest