dist_mat: Calculate Distance Matrix

Description Usage Arguments Details Value Examples

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/cc_testr documentation built on May 23, 2019, 7:34 a.m.