distance {rdiversity}R Documentation

Generate distance object

Description

Container for class distance.

Usage

distance(distance, dat_id)

## S4 method for signature 'matrix,character'
distance(distance, dat_id)

## S4 method for signature 'matrix,missing'
distance(distance, dat_id)

Arguments

distance

distance matrix

dat_id

object of class character denoting the type of diversity being calculated. This can be "naive", "genetic", "taxonomic", and so on

Value

distance() returns an object of class distance.


[Package rdiversity version 2.2.0 Index]