changeClusterFormat: Change cluster format

Description Usage Arguments Details Value Author(s) See Also

View source: R/peplib.R

Description

Takes in a list of clusters and outputs a single vector with the index from the cluster list.

Usage

1
changeClusterFormat(clusterList)

Arguments

clusterList

A list of vectors, where each vector contains numbers. There should be no repeats in the numbers.

Details

Takes in a list of clusters, for example [2 3] [1 5 4], and converts it to a single vector where each element is the cluster index. For the example above, it would produce [2 1 1 2 2].

Value

A vector of cluster indices.

Author(s)

Andrew White

See Also

aclust


peplib documentation built on May 29, 2017, 10:52 p.m.