Learn R Programming

MEAL (version 1.2.3)

exportResults: Exports results data.frames to csv files.

Description

Exports results to csv files. If more than one variable is present, subfolders with the name of the variable are created. For each variable, four files will be generated: probeResults.csv, dmrCateResults.csv, bumphunterResults.csv and blockFinderResults.csv

Usage

exportResults(object, dir = "./", prefix = NULL, vars = modelVariables(object))

Arguments

object
MethylationResults or MethylationRegionResults
dir
Character with the path to export.
prefix
Character with a prefix to be added to all file names.
vars
Character vector with the names of the variables to be exported. Note: names should be that of the model.

Value

Files are saved into the given folder.

Examples

Run this code
if (require(minfiData)){
set <- prepareMethylationSet(getBeta(MsetEx)[1:10,], pheno = pData(MsetEx))
methyOneVar <- DAPipeline(set, variable_names = "sex", probe_method = "ls")
exportResults(methyOneVar)
}

Run the code above in your browser using DataLab