matfix {cellmigRation}R Documentation

Clean And Reformat a Numeric Matrix

Description

Convert any matrix-lie object to a numeric Matrix, and coerces all the elements to integer. Row names and column names are removed.

Usage

matfix(x)

Arguments

x

matrix or data.frame including numeric data (or data that can be coerced to integer)

Value

numeric matrix with all its elements coerced to integer

Author(s)

Damiano Fantini, damiano.fantini@gmail.com

References

https://www.data-pulse.com/dev_site/cellmigration/

Examples

tmp <- data.frame(A = c(1,2,3,4), B=c(3.1, 2.8, 3.3, 9.1), C = FALSE)
cellmigRation:::matfix(tmp)


[Package cellmigRation version 1.0.0 Index]