I want to find the nearest point from data frame B to all the data points located in A; I used KDtree. query, but I am not sure where to write A and B, I wrote it as follows, is