AddFactor: Utilities Add Factors

View source: R/Utilities.R

AddFactorR Documentation

Utilities Add Factors

Description

The "AddFactor" function can add factors to the full dataset, this function can add one or more factors into coldata. Here the row.names/names of factor matrix/vector should be equal to the row.names of coldata of RISC object.

Usage

AddFactor(object, colData = NULL, rowData = NULL, value = NULL)

Arguments

object

RISC object: a framework dataset.

colData

Input the names that will be added into coldata of RISC object, it should be characters, as the col.names of coldata.

rowData

Input the names that will be added into rowdata of RISC object, it should be characters, as the col.names of rowdata.

value

The factor vector or data.frame that will be added into coldata or rowdata, the vector/data.frame should have equal names/row.names to the row.names coldata or rowdata of RISC object. The input: vector or data.frame.


bioinfoDZ/RISC documentation built on March 30, 2024, 9:19 p.m.