Thu Feb 27 20:39:54 2020 nn_test R version 3.4.4 (2018-03-15) nn computes nearest neighbor interpolation. q: [,1] [,2] [,3] [,4] [,5] [1,] 5 6 3 3 4 [2,] 4 7 2 2 7 [3,] 2 5 6 3 0 [4,] 1 0 5 4 8 y: [1] 6 2 4 5 q: [,1] [,2] [,3] [,4] [,5] [1,] 6 7 5 6 7 ynew <- nn ( p, y, q ) [1] 6 nn_test Normal end of execution. Thu Feb 27 20:39:54 2020