preprocess: This is the first function of BioApp which preprocess the...

Usage Arguments Examples

View source: R/preprocess.r

Usage

1
preprocess(CPM_type, raw_data, class_index)

Arguments

CPM_type

options for classification or cox regression. Input either "cox" or "classification".

raw_data

input dataset include label and features

class_index

The column index of the label

Examples

1
2
3
4
5
6
7
8
9
## Set output Rdata file.
output_path = "./output.rda"
## The function will relocate the label to the first column.
preprocess("classification", iris, c(5))
[1] "1 :  Species"
[1] "2 :  Sepal.Length"
[1] "3 :  Sepal.Width"
[1] "4 :  Petal.Length"
[1] "5 :  Petal.Width"

Cheng-Lab-GitHub/BioApp documentation built on Oct. 30, 2019, 5:40 a.m.