sample_id {geneExpression} R Documentation

get/set new sample id list to the matrix columns

Description

Usage

sample_id(x,
    sample.ids = NULL);

Arguments

x

target gene expression matrix object

sample.ids

a character vector of the new sample id list for set to the sample columns of the gene expression matrix. [as string]

env

[as Environment]

Details

it is kind of colnames liked function for dataframe object.

Authors

phenotype_kit

Value

this function will get sample_id character vector from the input matrix if the `sample_ids` parameter is missing, otherwise it will set the new sample id list to the input matrix object and return the modified matrix object. if the input `x` object is not a valid gene expression matrix object, then a error message object will be returned.

clr value class

Examples


[Package geneExpression version 1.0.0.0 Index]