jaccard: Compute Jaccard distance / index for given microbial profiles

Description Usage Arguments Value Author(s)

View source: R/microbiomics.r

Description

This functions computes distance / similarity matrix based on microbial community profiles given as input. Jaccard distance is based on Jaccard index, following the definition given in wikipedia (https://en.wikipedia.org/wiki/Jaccard_index). Note, that this is different from Jaccard index in vegdist function in package vegan.

Usage

1
jaccard(x, return_index = FALSE)

Arguments

x

data frame or matrix containing microbial community profiles

return_index

set TRUE to return Jaccard Index instead of distance

Value

a dist object containing Jaccard distances / indeces

Author(s)

Tommi Vatanen <[email protected]>


tvatanen/microbiomics documentation built on May 7, 2018, 9:11 a.m.