Dear Kevin, thanks a lot for your help. Do you have any idea about what this means?
> fviz_nbclust(df, FUNcluster=MyKmeansFUN, method="gap_stat")
Clustering k = 1,2,..., K.max (= 10): .. done
Bootstrapping, b = 1,2,..., B (= 100) [one "." per sample]:
.................................................. 50
.................................................. 100
There were 50 or more warnings (use warnings() to see the first 50)
> warnings()
Warning messages:
1: In ans * length(l) + if1 :
longer object length is not a multiple of shorter object length
2: In ans * length(l) + if1 :
longer object length is not a multiple of shorter object length
3: In ans * length(l) + if1 :
longer object length is not a multiple of shorter object length
4: In ans * length(l) + if1 :
longer object length is not a multiple of shorter object length
.....
50: In ans * length(l) + if1 :
longer object length is not a multiple of shorter object length