Learn R Programming

SuperPCA (version 0.4.0)

normc: Normaliz the columns of x to a length of 1.

Description

Normaliz the columns of x to a length of 1.

Usage

normc(x)

Arguments

x

n*p matrix

Value

xn normalized result

Examples

Run this code
# NOT RUN {
#ex1.
m <- matrix(1:4,2,2,byrow=TRUE)
normc(m)
#ex2.
n <- matrix(rnorm(100,10,1),10,10)
normc(n)
# }

Run the code above in your browser using DataLab