Learn R Programming

fossil (version 0.4.0)

rclust: Relational Clustering

Description

A method to cluster a number of samples using a relational (dissimila

Usage

rclust(dist, clusters = 2, runs = 10, counter = FALSE)

Arguments

dist

pairwise distance matrix

clusters

final number of clusters

runs

number of randomizations to run

counter

use counter to display current run number

Value

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

Details

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.

See Also

rclust.dist, rclust.null, rclust.weights and coi

Examples

Run this code
# NOT RUN {
#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)
# }

Run the code above in your browser using DataLab