Hello
I encountered a problem. I used the command fviz_nbclust to determine the optimal number of clusters, but each time Optimal number of cluster becomes one . Please help me . Thanks
install.packages("cluster")
install.packages("factoextra")
Install.packages(“ggplot2”)
library(cluster)
library(ggplot2)
library(factoextra)
data<-read.table("clipboard",h=TRUE,sep="\t")
data<-na.omit(data)
lablel=data$Author
lable
data<-scale(data)
fviz_nbclust(data, kmeans, method ="gap_stat")