prey.cluster {QFASA}R Documentation

This function performs a hierarchical cluster analysis of prey fatty acid signatures using a matrix of dissimilarities for the n objects being clustered. Initially, each object is assigned as its own cluster and then the algorithm proceeds iteratively, at each stage joining the two most similar clusters, until there is just a single cluster.

Description

This function performs a hierarchical cluster analysis of prey fatty acid signatures using a matrix of dissimilarities for the n objects being clustered. Initially, each object is assigned as its own cluster and then the algorithm proceeds iteratively, at each stage joining the two most similar clusters, until there is just a single cluster.

Usage

prey.cluster(prey.fa, method, FUN)

Arguments

prey.fa

data frame of prey fatty acid signature samples. Species column is used to group samples. Other columns are assumed to be fatty acid proportions.

method

the agglomeration method to be used. This should be one of 'single', 'complete', 'average', 'median', 'centroid'.

FUN

distance function

Value

an object of class hclust which describes the tree produced by the clustering process.


[Package QFASA version 1.0.3 Index]