Learn R Programming

survJamda (version 1.1.4)

prepzscore: Z-score normalization.

Description

Take two data sets, apply Z-score normalization to each and combine the two normalized data sets.

Usage

prepzscore(i, j)

Arguments

i
Matrix of gene expression data of the one of the two single data sets.
j
Matrix of gene expression data of the other single data set.

Value

Matrix of Z-score normalized merged data set.

Examples

Run this code
require(survJamda.data)

data(gse4335)
data(gse1992)

common.gene = intersect(colnames(gse4335),colnames(gse1992))
#m = prepzscore(gse4335[,common.gene],gse1992[,common.gene])

## The function is currently defined as
function (i, j)
{
        i = scale(t(scale(t(i))))
        j = scale(t(scale(t(j))))
        mat = rbind(i,j)
        return(mat)
}

Run the code above in your browser using DataLab