To avoid clustering in subsequent analysis I try to randomly select points of a SpatialPointsDataFram
with a given distance between the points. The remaining part should be devided for test analysis. I found this postRandomly sampling points in R with minimum distance constraint? from which I think it leads the right way, but I am not completely sure about the code.
Maybe there is function, like sample
, that already includes a distance parameter? Thx!