Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upObject of class `dist` as an input to `fviz_nbclust` #15
Comments
|
Hi @Nowosad , Thank you very much for reporting that. yes, every x is transformed to dist for computing 'wss' but we need also the original matrix value to compute FUNcluster, for example "pam". I think that the best option is to accept only the original matrix value as an input. I changed the function accordingly. Best regards, |
|
Hi @kassambara, Best regards, PS Correct me if I'm wrong - |
Hi!
I've tried to use
fviz_nbclustfunction. Based on the help page, it should takes an object x (matrixordata.frame). However, it's also possible to put theredistobject and to get different results:I've checked the source code and found out that inside the function
fviz_nbclusteveryxobject is transformed todistobject. Maybe the better way is to transform onlymatrixanddata.frameobject and not transformingdist. Alternatively (but probably not so good) is to forbiddistobject as an input.What do you think?