I am trying to subset a data.frame (A) containing X= lon/y = lat coordinates and z= elevation in meters. I have thousands of these elevation points, and I would like to extract