Description Usage Arguments Value Author(s) Examples
View source: R/Standard_Normalization.R
To normalize the data matrix by column
1 |
x |
The data matrix to be normalized |
The normalized matrix
Xiaoyao Yin
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | data1 <- matrix(0,100,100)
data2 <- matrix(0,80,100)
for (i in 1:20)
{
data1[i,] <- rnorm(100,10,1)
}
for (i in 21:40)
{
data1[i,] <- rnorm(100,20,1)
}
for (i in 41:60)
{
data1[i,] <- rnorm(100,30,1)
}
for (i in 61:80)
{
data1[i,] <- rnorm(100,40,1)
}
for (i in 81:100)
{
data1[i,] <- rnorm(100,50,1)
}
new_data1 <- Standard_Normalization(data1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.