matrix_load: Load replacement matrix

Description Usage Arguments Value Examples

View source: R/matrix_load.R

Description

This function is only for checking how the normalization matrix will be loaded internally.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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') 

act documentation built on Sept. 27, 2021, 1:06 a.m.