Learn R Programming

wrMisc (version 1.2.3)

fusePairs: Fuse pairs to generate cluster-names

Description

Fuse previously identified pairs to 'clusters', return vector with cluster-numbers.

Usage

fusePairs(
  datPair,
  refDatNames = NULL,
  inclRepLst = FALSE,
  maxFuse = NULL,
  debug = FALSE,
  silent = TRUE,
  callFrom = NULL
)

Arguments

datPair

2-column matrix where each line represents 1 pair

refDatNames

(NULL or character) allows placing selected pairs in context of larger data-set (names to match those of 'datPair')

inclRepLst

(logical) if TRUE, return list with 'clu' (clu-numbers, default output) and 'refLst' (list of clustered elements, only n>1)

maxFuse

(integer, default NULL) maximal number of groups/clusters

debug

(logical) for bug-tracking: more/enhanced messages and intermediate objects written in global name-space

silent

(logical) suppress messages

callFrom

(character) allow easier tracking of message(s) produced

Value

vector with cluster-numbers

Examples

Run this code
# NOT RUN {
daPa <- matrix(c(1:5,8,2:6,9),ncol=2)
fusePairs(daPa,maxFuse=4)
# }

Run the code above in your browser using DataLab