extrange: Extended range

Description Usage Arguments Details Author(s) Examples

Description

Returns the range extended by a given proportion.

Usage

1
extrange(x, percent = 0.1, na.rm = FALSE)

Arguments

x

A numeric vector.

percent

The proportion to be added to the range.

na.rm

Logical, indicating if NA's should be omitted.

Details

If the regular range returns a single value, the proportion is computed on this value itself (and not on the range).

Author(s)

Mathieu Basille basille@ufl.edu

Examples

1
2
3
4
extrange(0:10)
extrange(0:10, percent = .5)
extrange(-10:10)
extrange(rep(10, 3))

basille/basr documentation built on May 11, 2019, 8:32 p.m.