'NbClust not showing any result when i run my code on RStudio
So here is my code. I want to know how many clusters that is optimal using the Single-Linkage Method. I have already installed the package for NbClust. But, when I run my code NbClust does not show anything as I showed in the picture. Does anyone know why this happened?
library("readxl")
data <- read_excel("z_housing.xlsx")
install.packages("NbClust")
library(NbClust)
data.s <- scale(data[,-1:-2])
data.s
NbClust(data = data.s, distance = "euclidean",
min.nc = 2, max.nc = 15, method = "single", index = "all", alphaBeale = 0.1)
Here is the result:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

