unit {nvctr}R Documentation

Make input vector unit length, i.e. norm == 1

Description

Make input vector unit length, i.e. norm == 1

Usage

unit(vector)

Arguments

vector

a vector

Value

a unit length vector

See Also

Other helpers: deg(), rad()

Examples

unit(c(1,2,3))


[Package nvctr version 0.1.4 Index]