Fun_SE_to_taskFunc: Convert SE to mlr task

Description Usage Arguments Details Value Examples

Description

Convert SE to mlr task

Usage

1
2
Fun_SE_to_taskFunc(SE_obj, param.Y.name, param.covariates,
  param_positive_y_level, task_return_format, task_type)

Arguments

SE_obj

SE class

param.Y.name

Vector of dependent variable name

param.covariates

Vector of coaraiate variable(s) name

param_positive_y_level

if ClassifTask, value (character or numeric) to be considered as the positive factor outcome

Details

SE with multiple sub-assays, will include each sub-assay separately.

Either ClassifTask or RegrTask will be returned, based on the type of the param.Y.name variable

Value

mlr's ClassifTask or RegrTask

Examples

1
2
3
data(airway, package="airway") # RangedSummarizedExperiment
airway
Fun_SE_to_taskFunc(airway, param.Y.name = 'dex', param.covariates = c('avgLength'), param_positive_y_level = 'trt')

drorberel/Bioc2mlr documentation built on May 16, 2019, 5 a.m.