normalize_baseline: Normalize vector to baseline

View source: R/xs_area.R

normalize_baselineR Documentation

Normalize vector to baseline

Description

Calculates "normalized" vector; equivalent to pmin(x, y) - y

Usage

normalize_baseline(x, baseline)

Arguments

x

Numeric vector

baseline

Number to normalize against

Examples

  x <- rnorm(n = 20)
  baseline <- 0
  normalize_baseline(x, baseline)

brownhr/xsarea documentation built on June 8, 2022, 10:46 p.m.