linspace | R Documentation |
Generate linearly spaced sequences.
linspace(x1, x2, n = 100)
x1 |
numeric scalar specifying starting point |
x2 |
numeric scalar specifying ending point |
n |
numeric scalar specifying number of points to be generated |
These functions will generate n
linearly spaced points between
x1
and x2
.
If n < 2
, the result will be the ending point x2
.
vector containing n
points between x1
and x2
inclusive.
logspace
, seq
linspace(1, 10, 9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.