vecNorm: vecNorm(x)

Description Usage Arguments Value Author(s) Examples

View source: R/sampleSizeCalc.R View source: R/vecNorm.R

Description

This function calculates the norm (magnitude, Euclidian length) of a vector x.

This function calculates the norm (magnitude, Euclidian length) of a vector x.

Usage

1
2
3

Arguments

x

A vector. Defaults to NULL.

x

A vector. Defaults to NULL.

Value

A scalar, the norm of vector x.

A scalar, the norm of vector x.

Author(s)

Jennifer Starling

Jennifer Starling

Examples

1
2
3
4
5
x <- c(1,3,5,7,9)
vecNorm(x)

x <- c(1,3,5,7,9)
vecNorm(x)

jstarling1/starlib documentation built on May 20, 2019, 2:12 a.m.