get_dist: calculate distance

Description Usage Arguments Value See Also Examples

View source: R/get_ordination.R

Description

calculate distance

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
get_dist(obj, ...)

## Default S3 method:
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", ...)

Arguments

obj

phyloseq, phyloseq class or data.frame nrow sample * ncol feature.

...,

additional parameters.

distmethod

character, default is "euclidean", see also distanceMethodList

taxa_are_rows

logical, default is FALSE.

sampleda

data.frame, nrow sample * ncol factors.

tree

phylo, see also phylo.

method

character, default is hellinger, see alse decostand

Value

distance class contianed distmethod and originalD attr

See Also

distance

Examples

1
2
3
data(test_otu_data)
distclass <- get_dist(test_otu_data)
hcsample <- get_clust(distclass)

xiangpin/MicrobitaProcess documentation built on Nov. 23, 2019, 5:18 p.m.