powered by
findClosests(object, node.ids, x)
vector
data.frame.
## Not run: # gng <- GNG(gng.preset.sphere(100)) # # Find closest centroid to c(1,1,1) # found.centroids <- calculateCentroids(gng) # findClosests(gng, found.centroids, c(1,1,1)) # ## End(Not run)
Run the code above in your browser using DataLab