title: Finding closest point from other data frame
body: <p>I have two data frames , one is with 0.8 million rows with x and Y coordinates, another data frame is of 70000 rows with X and Y coordinates. I want to know logic and code in R where I want to associate data point from frame 1 to closest point in data frame 2. Is there any standard package to do so ?</p>
  
  <p>I am running nested for loop. But this is very slow as it is getting iterated for 0.8 million * 70000 times which is very time consuming.</p>