rclust: Relational Clustering

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1
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

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.

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

Author(s)

Matthew Vavrek

See Also

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

Examples

1
2
3
4
#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)

Example output

Loading required package: sp
Loading required package: maps
Loading required package: shapefiles
Loading required package: foreign

Attaching package:shapefilesThe following objects are masked frompackage:foreign:

    read.dbf, write.dbf

 [1] 2 1 1 2 2 1 2 2 1 1 1 2

fossil documentation built on March 23, 2020, 5:06 p.m.