matfix: Clean And Reformat a Numeric Matrix

Description Usage Arguments Value Author(s) References Examples

View source: R/all_functions_v8.R

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

1
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

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

ocbe-uio/cellmigRation documentation built on Dec. 16, 2021, 10:59 p.m.