Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. nb <- NbClust(d, distance = "euclidean", min.nc = 2, max.nc = 30, method = "complete", index ="all")
  2.  
  3. set.seed(123)
  4. d <- data.frame(x = unlist(lapply(1:500, function(i) rnorm(100, runif(1)*2^2))),
  5. y = unlist(lapply(1:500, function(i) rnorm(100, runif(1)*2^2))),
  6. z = unlist(lapply(1:500, function(i) rnorm(100, runif(1)*2^2))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement