matrix_load {act} | R Documentation |
Load replacement matrix
Description
This function is only for checking how the normalization matrix will be loaded internally.
Usage
matrix_load(path = NULL, myFileEncoding = "UTF-8")
Arguments
path |
Character string; path to the replacement matrix (a CSV file). If argument is left open, the default replacement matrix of the package will be returned. |
myFileEncoding |
Character string; encoding of the file. |
Value
Data.frame
Examples
library(act)
# An example replacement matrix comes with the package.
path <- system.file("extdata", "normalization", "normalizationMatrix.csv", package="act")
# Load the matrix
mymatrix <- act::matrix_load(path)
# Have a look at the matrix
colnames(mymatrix)
mymatrix
#the original path of the matrix is stored in the attributes
attr(mymatrix, 'path')
[Package act version 1.3.1 Index]