Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. price1 price2 price3 price4
  2. 0 1 1 0
  3. 1 0 1 1
  4. 0 0 0 0
  5. 1 0 1 0
  6.  
  7. stock1 stock2
  8. 1 1
  9. 0 1
  10. 1 0
  11. 1 1
  12.  
  13. stock 1- price 1
  14. stock 1- price 2
  15. stock 1- price 3
  16. stock 1- price 4
  17. stock 2- price 1
  18. stock 2- price 2
  19. stock 2- price 3
  20. stock 2- price 4
  21.  
  22. library(proxy)
  23. distanceMatrix <- proxy::dist(t(df), method = "Kulczynski1")
  24. heatmap(as.matrix(distanceMatrix))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement