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

seq_min_max

Create a sequence of evenly-spaced values


Description

For a continuous vector x, seq_min_max() creates a sequence of n evenly-spaced values over the range min(x)

Usage

seq_min_max(x, n)

Arguments

x

numeric; vector over which evenly-spaced values are returned

n

numeric; the number of evenly-spaced values to return

Value

A numeric vector of length n.

Examples

x <- rnorm(10)
n <- 10L
seq_min_max(x, n = n)

gratia

Graceful 'ggplot'-Based Graphics and Other Functions for GAMs Fitted Using 'mgcv'

v0.6.0
MIT + file LICENSE
Authors
Gavin L. Simpson [aut, cre] (<https://orcid.org/0000-0002-9084-8413>), Henrik Singmann [ctb] (<https://orcid.org/0000-0002-4842-3657>)
Initial release
2021-04-17

We don't support your browser anymore

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