Description Usage Arguments Value Examples
View source: R/cluster_search.r
This function takes a data.frame
of one species (or other sensible taxonomic unit) containing
information on time, unit, and type and searches for putative clusters.
1 | cluster.search(d, e, tc, ic, uc, p.n, hs, ...)
|
d |
A |
e |
A quadratic matrix with identical row and column names representing effective distances of units contained in |
tc |
A character or numeric identifying name or number, respectively, of time column in |
ic |
A character or numeric identifying name or number, respectively, of id column in |
uc |
A character or numeric identifying name or number, respectively, of unit column in |
p.n |
An integer specifying number of permutations performed. |
hs |
An integer containing the heights at which trees from hierarchical clustering should be cut. |
... |
Arguments passed to |
A data.frame
containing information on putative clusters.
1 2 | # starts a cluster search with 100 ('p.n' = 100) permutations (careful: takes a long time!)
test <- cluster.search(s_aureus, e = units_effdist, tc = "time", uc = "unit", ic = "id", p.n = 100, hs = c(2,3,6), dfun = "dist", dfun.args = list(method = "manhattan"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.