Learn R Programming

pcr (version 1.2.2)

.pcr_normalize: 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

Run this code
# NOT RUN {
vec <- rnorm(6, 30, 1)
ref <- rnorm(6, 30, .1)
pcr:::.pcr_normalize(vec, ref)
pcr:::.pcr_normalize(vec, ref, mode = 'divide')

# }

Run the code above in your browser using DataLab