rebase: Rebase 'base' starting from 'start' until 'start' using the...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Rebase base starting from start until start using the median of new_vals

Usage

1
rebase(base, start = 1, end = length(base), new_vals)

Arguments

base

A numeric vector.

start

Where to rebase base from (inclusive).

end

Where to rebase base until (inclusive).

new_vals

Rebase base using the median of new_vals

Value

A numeric vector.

Examples

1
2
runchart:::rebase(1:9, start = 4, new_vals = 1)
runchart:::rebase(1:9, start = 4, new_vals = c(1,2,3))

jsphdms/runchart documentation built on Oct. 30, 2017, 9:44 p.m.