groupsByCluster {GCDkit} | R Documentation |
Grouping the data using the cluster analysis.
groupsByCluster(elems= "SiO2,TiO2,Al2O3,FeOt,MnO,MgO,CaO,Na2O,K2O", method="ave")
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):
|
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
'.
groups |
character vector: the grouping information |
grouping |
set to zero. |
Vojtěch Janoušek, vojtech.janousek@geology.cz
classify groupsByLabel groupsByDiagram