Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fviz_dend doesn't work for diana object #30

Closed
qfazille opened this issue Apr 3, 2017 · 1 comment
Closed

fviz_dend doesn't work for diana object #30

qfazille opened this issue Apr 3, 2017 · 1 comment

Comments

@qfazille
Copy link

qfazille commented Apr 3, 2017

Hello,

In fviz_dend file (line 134)
if(is.na(method)) method <- ""

But object$method is null when :

  • diana class
  • hcut with hc_func=diana

This cause error below :
Error in if (is.na(method)) method <- "" :
l'argument est de longueur nulle
De plus : Warning message:
In is.na(method) :
is.na() appliqué à un objet de type 'NULL' qui n'est ni une liste, ni un vecteur

Thank you for your work.

kassambara added a commit that referenced this issue Apr 4, 2017
@kassambara
Copy link
Owner

Thank you for pointing this out.
Bug fixed now.

To install the latest version, type this:

if(!require(devtools)) install.packages("devtools")
devtools::install_github("kassambara/factoextra")

@qfazille qfazille closed this as completed Apr 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants