norm_vector: Calculate the norm (or length) of a vector

Description Usage Arguments Value Examples

Description

Calculates the length of a vector, also known as the norm if there are more than two elements in the vector.

Usage

1

Arguments

x

Vector

Value

Numeric, norm of the input vector

Examples

1
2
3
4
5
x <- c(3, 8)
norm_vector(x)

x <- c(3, 4, 5, 2)
norm_vector(x)

Swarchal/TCCS documentation built on May 9, 2019, 3:24 p.m.