seq_range: Create a sequence over the range of a vector

Description Usage Arguments Value See Also Examples

View source: R/seq_range.R

Description

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

Usage

1
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

mean_or_mode, build_datalist

Examples

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

leeper/prediction documentation built on Jan. 1, 2020, 6:10 p.m.