Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

seq_range

Create a sequence over the range of a vector


Description

Define a sequence of evenly spaced values from the minimum to the maximum of a vector

Usage

seq_range(x, n = 2)

Arguments

x

A numeric vector

n

An integer specifying the length of sequence (i.e., number of points across the range of x)

Value

A vector of length n.

See Also

Examples

identical(range(1:5), seq_range(1:5, n = 2))
seq_range(1:5, n = 3)

prediction

Tidy, Type-Safe 'prediction()' Methods

v0.3.14
MIT + file LICENSE
Authors
Thomas J. Leeper [aut, cre] (<https://orcid.org/0000-0003-4097-6326>), Carl Ganz [ctb], Vincent Arel-Bundock [ctb] (<https://orcid.org/0000-0003-2042-7063>)
Initial release
2019-06-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.