powered by
Calculates sums of squares for uni- or multi-dimensional numeric data using the distance matrix.
SS(data, ...)
Returns a numeric vector of length 1.
a numeric vector or n x k matrix or data frame.
n x k
arguments passed to dist().
dist()
data <- matrix(c(rnorm(50, 0, 1), rnorm(50, 5, 1)), ncol = 2, byrow = TRUE) SS(data)
Run the code above in your browser using DataLab