SLCluster: Perform Single Linkage clustering

Description Arguments Examples

View source: R/SLCluster.r

Description

Perform single linkage clustering on a set of data and the distance matrix that is built upon it.

Arguments

X

data frame. Rows correspond to observations, columns to variables

Examples

1
2
3
4
5
BabyDat = matrix(c(1,1,5,5,2,3,3.5,2), ncol = 2)
plot(BabyDat[,1], BabyDat[,2], xlim = c(0,6), ylim = c(0,6))
BabyDatDf = data.frame(cbind(c("A", "B", "C", "D"), BabyDat))
result = SLCluster(BabyDatDf[,2:3])
plot(result)

hankuipeng/HKCluster documentation built on May 27, 2019, 8:45 a.m.