Reputation: 972
Given data below, I have applied DBSCAN on those points
set.seed(294056)
df = data.frame(x = runif(1000), y = runif(1000), z = runif(1000))
library(dbscan)
db = dbscan(df, eps = 0.3, minPts =100) # formed 1 cluster
print(db)
DBSCAN clustering for 1000 objects.
Parameters: eps = 0.3, minPts = 100
The clustering contains 1 cluster(s) and 60 noise points.
0 1
60 940
Available fields: cluster, eps, minPts
I wanted to extract core points from that cluster. Is there a way to extract those points?
Upvotes: 1
Views: 738
Reputation: 676
In your dbscan
set borderPoints = F
.
This way, you only retrieve core points by discarding border points.
Upvotes: 1