Learn R Programming

RPMG (version 2.2-7)

XPAND: Expand Bounds

Description

Calculate an expanded bounding region based on a percent of the existing boundaries

Usage

XPAND(g, pct = 0.1)

Value

vector, new range

Arguments

g

vector of values

pct

fractional percent to expand

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

Details

uses the range of the exising vector to estimate the expanded bound

Examples

Run this code

i = 5:10
exi = XPAND(i, pct = 0.1)
range(i)
range(exi)

Run the code above in your browser using DataLab