newCluster: To create a new cluster.

Description Usage Arguments Details Value Author(s) Examples

View source: R/newCluster.R

Description

To create the cluster formed by the two clusters given. Add the new cluster to list.

Usage

1
newCluster(list, clusters)

Arguments

list

is the generic cluster list.

clusters

is a vector with the matrix index clusters.

Details

This function is part of the hierarchical clusterization method.

1 - The function maps clusters in list.

2 - It creates a new cluster from them.

3 - It adds the new cluster to list.

4 - It disables the clusters used in the second step.

Value

A list with clusters.

Author(s)

Roberto Alcántara roberto.alcantara@edu.uah.es

Juan José Cuadrado jjcg@uah.es

Universidad de Alcalá de Henares

Examples

1
2
3
4
5
6
7
data <- c(1:10)

list <- toList(data)

clusters <- c(1,2)

newCluster(list,clusters)

LearnClust documentation built on Nov. 30, 2020, 1:09 a.m.