matrix_save {act}R Documentation

Save replacement matrix

Description

Save replacement matrix

Usage

matrix_save(replacementMatrix, path, myFileEncoding = "UTF-8")

Arguments

replacementMatrix

Data frame; replacement matrix.

path

Character string; path where the matrix will be saved.

myFileEncoding

Character string; encoding of the file.

Value

nothing

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)

# ' # Create temporary file path
path <- tempfile(pattern = "mymatrix", tmpdir=tempdir(),  fileext = ".csv")

# It makes more sense, however, to you define a destination folder
# that is easier to access on your computer:
## Not run: 
path <- file.path("PATH_TO_AN_EXISTING_FOLDER_ON_YOUR_COMPUTER",
                  "mymatrix.csv")

## End(Not run)

# Save the matrix
act::matrix_save(mymatrix, path=path)


[Package act version 1.3.1 Index]