Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.57 KB | None | 0 0
  1. hierarchiczne eleganckie:
  2. #hierarchiczne
  3. d <- dist(scale.flag, method = "euclidean", diag = FALSE, upper = FALSE)
  4. hclust.result <- hclust(d, method = "ward.D", members = NULL)
  5. plot(hclust.result)
  6.  
  7.  
  8. #hierarchiczne przerobione 1
  9. d <- dist(scale.flag, method = "maximum", diag = FALSE, upper = FALSE)
  10. hclust.result <- hclust(d, method = "mcquitty", members = NULL)
  11. plot(hclust.result)
  12.  
  13.  
  14. #hierarchiczne przerobione 2
  15. d <- dist(scale.flag, method = "minkowski", diag = FALSE, upper = FALSE)
  16. hclust.result <- hclust(d, method = "single", members = NULL)
  17. plot(hclust.result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement