R/clusterindex-reshape.R
familycluster.index.Rd
Finds all pairs within a cluster (family)
familycluster.index(clusters, index.type = FALSE, num = NULL, Rindex = 1)
list of indeces
argument of cluster index
num
index starts with 1 in R, and 0 in C
Cluster indeces
cluster.index familyclusterWithProbands.index
Klaus Holst, Thomas Scheike
i<-c(1,1,2,2,1,3) d<- familycluster.index(i) print(d) #> $familypairindex #> [1] 1 2 1 5 2 5 3 4 #> #> $subfamilyindex #> [1] 0 0 1 1 2 2 3 3 #> #> $pairs #> [,1] [,2] #> [1,] 1 2 #> [2,] 1 5 #> [3,] 2 5 #> [4,] 3 4 #> #> $clusters #> [1] 1 1 1 2 #>