Suppose I have coordinates of digits, with each ID, I can put my data into this structure id & lt; -c ("A", "B", "C", "C".) "D", "E", "F", "G" , "H", "I", "J", "K", "L", "M", "N") x_coor & lt; -c 0.5,1,1,1,5,2,3,3,3,5,4,4,5,5,5,6,7,7) y_coor & lt; - c (5.5,3,7,6,5,5,3,5,3,1,5, 1,2,5,4,5,3,5,5.5) my.data & lt; - data.frame (id = id, x_coor = x_coor, y_coor = y_coor) # When I perform deluxe triangular, then I can see the distance .... Library (tripeak) my.triangles & lt; -ri.mesh (my.data $ x_coor, my.data $ y_coor) Plot (my.triangles, do.points = FALSE, lwd = 0.2) digits (my.data $ x, my .data $ y, col = " Black ", pch = 20, cex = 1.5) text (my.data $ x, my.data $ y, labels = my.data $ id) How can I remove" pairs "of the list points in this way the object? # I want something like this...