groupsByCluster {GCDkit}R Documentation

Groups by cluster analysis

Description

Grouping the data using the cluster analysis.

Usage

    groupsByCluster(elems=
    "SiO2,TiO2,Al2O3,FeOt,MnO,MgO,CaO,Na2O,K2O",
    method="ave")

Arguments

elems

numerical columns to be used for cluster analysis, typically major elements

method

the agglomeration method to be employed. This should be one of (or an unambiguous abbreviation thereof): 'ward', 'single', 'complete',

'average', 'mcquitty', 'median', 'centroid'.

Details

After the dendrogram is drawn, the user is asked how many clusters is the dataset to be broken into.

The vector containing the information on the current groups can be appended to the data frame 'labels'.

The groups are initially numbered but this can be changed readily using the function editLabFactor.

For further details on the clustering algorithm, see the R manual entry of 'hclust'.

Value

groups

character vector: the grouping information

grouping

set to zero.

Author(s)

Vojtech Janousek, vojtech.janousek@geology.cz

See Also

classify groupsByLabel groupsByDiagram


[Package GCDkit version 4.1 Index]