exportResults: Exports results data.frames to csv files.

Description Usage Arguments Value Examples

View source: R/ResultSet_exportResults.R

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

1
2
3
4
5
6
exportResults(
  object,
  dir = "./",
  prefix = NULL,
  fNames = c("chromosome", "start")
)

Arguments

object

ResultSet

dir

Character with the path to export.

prefix

Character with a prefix to be added to all file names.

fNames

Names of the columns of object fData that will be added to the results data.frame.

Value

Files are saved into the given folder.

Examples

1
2
3
4
5
if (require(minfiData)){
set <- ratioConvert(mapToGenome(MsetEx[1:10,]))
methyOneVar <- runPipeline(set, variable_names = "sex")
exportResults(methyOneVar)
}

MEAL documentation built on Feb. 3, 2021, 2 a.m.