convNamesPairsToIndexPairs: Conversion of a set of names pairs to matrix of index pairs...

View source: R/sampleCompute.R

convNamesPairsToIndexPairsR Documentation

Conversion of a set of names pairs to matrix of index pairs (2 columns)

Description

Performs conversion of list of names pairs to a matrix of index pairs

Usage

convNamesPairsToIndexPairs(pair.list, full.name.set)

Arguments

pair.list

list of names pairs (vector of 2 names).

full.name.set

a vector of unique names.

Details

convNamesPairsToIndexPairs performs conversion of list of names pairs to a matrix of index pairs.

Value

the 2-column matrix of pairs of indexes.

See Also

computeSemiSupervised, KwaySSSC

Examples

x <- c("a"=10, "b"=20, "c"=30 )

ML <- list()
ML[[1]] <- c("a","c")
ML[[2]] <- c("c","d")

mustLink<-convNamesPairsToIndexPairs(ML,names(x))


RclusTool documentation built on May 29, 2024, 5:23 a.m.