Debian Codegraph @

man/lowest_common_branch.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/cor_bakers_gamma.R
3 \name{lowest_common_branch}
4 \alias{lowest_common_branch}
5 \title{Find lowest common branch were the two items are shared}
6 \usage{
7 lowest_common_branch(item1, item2, ...)
8 }
9 \arguments{
10 \item{item1}{a named numeric vector (of cluster group with names of k level)}
11
12 \item{item2}{a named numeric vector (of cluster group with names of k level)}
13
14 \item{...}{not used}
15 }
16 \value{
17 The first location (from left) where the two vectors have the same A dendrogram, after adjusting the members attr in all of its nodes.
18 }
19 \description{
20 Given two vectors, for two items, of cluster belonging - the function finds
21 the lowest branch (e.g: largest number of k clusters) for which the two
22 items are in the same cluster for the two trees.
23 }
24 \examples{
25
26 item1 <- structure(c(1L, 1L, 1L, 1L), .Names = c("1", "2", "3", "4"))
27 item2 <- structure(c(1L, 1L, 2L, 2L), .Names = c("1", "2", "3", "4"))
28 lowest_common_branch(item1, item2)
29 }
30 \seealso{
31 \link{cor_bakers_gamma}
32 }