I have two datasets which has a length of 10000 columns but it looks like this. Essentially, it has the x- and y- coordinate of every object in a 2d map.
rep x-pos y-pos 1 0.5 0.7 1 0.1 0.0 1 4.6 2.5 2 5.6 5.0 2 0.2 1.0 2 0.4 2.0
I want to measure if the two datasets have similar levels of clustering between the objects. Visually, the 2D maps look like one dataset has a higher number of clusters. Is there a method like mclust or dbscan where I can quantify clustering differences in spatial datasets in . Thanks?