dot-pcr_normalize: Normalize vector by another

Description Usage Arguments Value Examples

Description

Normalize vector by another

Usage

1
.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

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

pcr documentation built on April 1, 2020, 9:07 a.m.