dot-pcr_normalize: Normalize vector by another

.pcr_normalizeR Documentation

Normalize vector by another

Description

Normalize vector by another

Usage

.pcr_normalize(vec, ref, mode = "subtract")

Arguments

vec

A vector of numerics

ref

A numeric vector

mode

Either 'subtract' or 'divide'

Value

A vector of numerics

Examples

vec <- rnorm(6, 30, 1)
ref <- rnorm(6, 30, .1)
pcr:::.pcr_normalize(vec, ref)
pcr:::.pcr_normalize(vec, ref, mode = 'divide')


MahShaaban/pcr documentation built on July 16, 2024, 3:34 a.m.