df <- data.frame(a = runif(1000), b = rnorm(1000), c = sample(LETTERS[1:5], size = 1000, replace = TRUE))
# Returning the indices of the sampled points
res <- clhs(df, size = 50, iter = 2000, progress = FALSE, simple = TRUE)
str(res)
# Returning a cLHS_result object for plotting
res <- clhs(df, size = 50, iter = 2000, progress = FALSE, simple = FALSE)
str(res)
plot(res)Run the code above in your browser using DataLab