normvec: Normalized a vector to unit length

Description Usage Arguments Value Author(s)

Description

Normalized a vector or matrix with 1 row/column to unit length

Usage

1
normvec(x, center = FALSE)

Arguments

x

a vector or matrix has one row/column

center

whether x should be centered

Value

a normalized vector/matrix has the same length as x

Author(s)

Chen Meng


mengchen18/omic3plus documentation built on May 6, 2019, 4:59 p.m.