distShiny: Create distance matrix from numerical matrix

View source: R/tab_values.R

distShinyR Documentation

Create distance matrix from numerical matrix

Description

The function distShiny takes as an input a numerical matrix or data.frame and returns the distances between the rows and columns based on the defined method (e.g. euclidean distance).

Usage

distShiny(x, method = "euclidean")

Arguments

x

matrix or data.frame with samples in columns and features in rows

method

character, method for distance calculation

Details

Internal use in shinyQC.

Value

matrix

Examples

x <- matrix(seq_len(100), nrow = 10, ncol = 10, 
        dimnames = list(seq_len(10), paste("sample", seq_len(10))))
distShiny(x = x)


tnaake/MatrixQCvis documentation built on Nov. 4, 2024, 7:42 a.m.