Learn R Programming

LearnClust (version 1.1)

newCluster: To create a new cluster.

Description

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

Usage

newCluster(list, clusters)

Arguments

list

is the generic cluster list.

clusters

is a vector with the matrix index clusters.

Value

A list with 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.

Examples

Run this code
# NOT RUN {
data <- c(1:10)

list <- toList(data)

clusters <- c(1,2)

newCluster(list,clusters)

# }

Run the code above in your browser using DataLab