Generates a function with syntax f(x) that returns a dist object
1 2 3 4 5 | MPdistFactory(method = c("euclidean", "manhattan", "canberra", "pc1",
"log2euclidean", "pearson", "spearman", "hclust", "pam", "dbscan"),
directional = TRUE, log2.shift = 1, clust.dist = "euclidean",
clust.method = c("complete", "single", "average"),
clust.weight = 0.8, clust.k = 2, clust.alt = FALSE, eps = 1)
|
method |
character, one of the available options. The output function will be able to compute dist using the specified method |
directional |
logical, used with method=pearson and method=spearman |
log2.shift |
numeric, Used with method=log2euclidean. |
clust.dist |
character, used with method=hclust |
clust.method |
character, used with method=hclust |
clust.weight |
numeric, used with method=hclust |
clust.k |
integer, used with method=hclust |
clust.alt |
boolean, used with method=hclust |
eps |
numeric used with method=dbscane |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.