Skip to contents

Returns the square root of the sum of squares of a vector

Usage

calc_norm(x)

Arguments

x

numeric vector

Value

numeric value

Examples

x <- rnorm(5)
calc_norm(x)
#> [1] 2.067839