distShiny {MatrixQCvis}R 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(1:100, nrow = 10, ncol = 10, 
        dimnames = list(1:10, paste("sample", 1:10)))
distShiny(x = x)


[Package MatrixQCvis version 1.1.2 Index]