rclust {fossil} | R Documentation |
A method to cluster a number of samples using a relational (dissimila
rclust(dist, clusters = 2, runs = 10, counter = FALSE)
dist |
pairwise distance matrix |
clusters |
final number of clusters |
runs |
number of randomizations to run |
counter |
use counter to display current run number |
This function will return a cluster identity vector. The number of clusters requested must be 2 or greater, but 1/2 or less than the total number of samples, as the function requires at least 2 samples per cluster.
The vector returned will be the same length as the number of samples provided in the original dist
matrix. The samples will have been clustered into the same number of clusters as defined in clusters
Matthew Vavrek
rclust.dist
, rclust.null
, rclust.weights
and coi
#a null solution for the fdata example data set
data(fdata.mat)
fd.dist <- dino.dist(fdata.mat)
rclust(fd.dist, clusters = 2, runs = 10)