PadRange: Expand limits by some amount or proportionally to their...

Description Usage Arguments Examples

Description

PadRange Takes limits and expands them by some amount or proportionally to their difference.

Usage

1
PadRange(limits, delta = diffMult * diff(limits), diffMult = 0.05)

Arguments

limits

A vector of length 2, an initial range, to be expanded.

delta

An amount to add(subtract) from the upper(lower) limit.

diffMult

A fraction of the passed range (limits) to use as delta.

Examples

1
2
3
PadRange(c(0,100))
PadRange(c(0,100), delta=.1)
PadRange(c(0,100), diffMult=.1)

NCAR/rwrfhydro documentation built on Feb. 28, 2021, 12:47 p.m.