View source: R/method-mp_cal_dist.R
get_dist | R Documentation |
calculate distance
get_dist(obj, ...)
## S3 method for class 'data.frame'
get_dist(
obj,
distmethod = "euclidean",
taxa_are_rows = FALSE,
sampleda = NULL,
tree = NULL,
method = "hellinger",
...
)
## S3 method for class 'phyloseq'
get_dist(obj, distmethod = "euclidean", method = "hellinger", ...)
obj |
phyloseq, phyloseq class or data.frame nrow sample * ncol feature. |
... |
additional parameters. |
distmethod |
character, default is "euclidean",
see also |
taxa_are_rows |
logical, default is FALSE. |
sampleda |
data.frame, nrow sample * ncol factors. |
tree |
object, the phylo class, see also |
method |
character, default is hellinger,
see alse |
distance class contianed distmethod and originalD attr
distance
## Not run:
data(test_otu_data)
test_otu_data %<>% as.phyloseq()
distclass <- get_dist(test_otu_data)
hcsample <- get_clust(distclass)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.