addRandToSampTab: Add Random Profiles to Sample Table

View source: R/addRandToSampTab.R

addRandToSampTabR Documentation

Add Random Profiles to Sample Table

Description

Add the random profiles generated from rf_classPredict to the sample table for classification of the random profiles.

Usage

addRandToSampTab(classRes, sampTab, desc, id)

Arguments

classRes

the classification matrix generated from rf_classPredict

sampTab

the meta sample table

desc

the column name of the column containing the sample categories in the meta sample table

id

the column name of the column containing the sample names in the meta sample table

Value

meta sample table containing the random profiles

Examples

stValRand<-addRandToSampTab(classRes_val, stVal, "description2", "sample_name")

pcahan1/cancerCellNet documentation built on July 16, 2022, 12:12 a.m.