Answer:
Explanation:
The distance between:
10 and 4: 1.492
10 and 20: 2.055
13 and 4: 2.577
13 and 20: 2.226
The R code:
#Convert your datafile into csv and make sure your row names are 10,13,4 and 20
data=read.csv(file.choose())
data
row.names(data)=c(10,13,4,20)
data
d=dist(data,method="euclidean")
d
fit=hclust(d,method="complete")
plot(fit)
groups=cutree(fit,k=2)
rect.hclust(fit,k=2,border="red")