Learn R Programming

broom.helpers (version 1.17.0)

seq_range: Sequence generation between min and max

Description

Sequence generation between min and max

Usage

seq_range(x, length.out = 25)

Value

a numeric vector

Arguments

x

(numeric)
A numeric vector.

length.out

(integer)
Desired length of the sequence (a positive integer).

Details

seq_range(x, length.out) is a shortcut for seq(min(x, na.rm = TRUE), max(x, na.rm = TRUE), length.out = length.out)

Examples

Run this code
seq_range(iris$Petal.Length)

Run the code above in your browser using DataLab