Learn R Programming

act (version 1.3.1)

matrix_load: 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")

Value

Data.frame

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.

Examples

Run this code
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') 

Run the code above in your browser using DataLab