Learn R Programming

RclusTool (version 0.91.61)

convNamesPairsToIndexPairs: 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)

Value

the 2-column matrix of pairs of indexes.

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.

See Also

computeSemiSupervised, KwaySSSC

Examples

Run this code
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))

Run the code above in your browser using DataLab