dist_mat: Calculate Distance Matrix

Description Usage Arguments Details Value Examples

View source: R/dist_mat.R

Description

This utility function calculates the distance matrix for a given dataset.

Usage

1
dist_mat(dat, dist)

Arguments

dat

Probe by sample omic data matrix.

dist

Distance metric for clustering. Supports all methods available in dist and vegdist, as well as those implemented in the bioDist package.

Details

Samplewise distance is calculated using one of the following methods:

Value

An object of class dist representing the pairwise distance between columns of dat.

Examples

1
2
mat <- matrix(rnorm(1000 * 12), nrow = 1000, ncol = 12)
dm <- dist_mat(mat, dist = "euclidean")

dswatson/M3C documentation built on Aug. 20, 2017, 2:46 p.m.