Learn R Programming

birk (version 1.3.0)

range_seq: Sequence Generation Spanning A Numerical Range

Description

Generates a sequence of numbers spanning the range of x.

Usage

range_seq(x, extend = 0, ...)

Arguments

x
a numeric vector.
extend
number specifying the fraction by which the range should be extended.
...
further arguments to be passed to seq.

encoding

UTF-8

See Also

seq, extendrange

Examples

Run this code
range_seq(rnorm(10, sd = 20))
range_seq(c(3, 9), extend = 0.1)
range_seq(c(3, 9), length.out = 20)

Run the code above in your browser using DataLab