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

Description Usage Arguments Value Examples

View source: R/normc.R

Description

Normaliz the columns of x to a length of 1.

Usage

1
normc(x)

Arguments

x

n*p matrix

Value

xn normalized result

Examples

1
2
3
4
5
6
#ex1.
m <- matrix(1:4,2,2,byrow=TRUE)
normc(m)
#ex2.
n <- matrix(rnorm(100,10,1),10,10)
normc(n)

SuperPCA documentation built on July 26, 2021, 5:06 p.m.

Related to normc in SuperPCA...