Learn R Programming

crmn (version 0.0.21)

mexprs-rep-methods: Accessor

Description

Matrix safe setter of expression slot

Usage

mexprs(object) <- value

# S4 method for ExpressionSet,matrix mexprs(object) <- value

mexprs(object) <- value

Arguments

object

an ExpressionSet or matrix

value

the value to assign

Value

the expression data

Details

Set the expression data in an ExpressionSet or just return the given matrix

Examples

Run this code
# NOT RUN {
data(mix)
test <- mix
mexprs(test) <- exprs(mix) * 0
head(mexprs(test))
test <- exprs(mix)
mexprs(test) <- test * 0
head(mexprs(test))
# }

Run the code above in your browser using DataLab