This wraps seq trivially. What can I say, I like the Numpy API.

linspace(start, stop, num = 15)

Arguments

start

base^start is the starting value of the sequence

stop

base^stop is the final value in the sequence

num

Number of sequence elements to generate. Default is 15.

Value

Linearly spaced sequence from start to stop

Examples

linspace(-5, 5)
#> [1] -5.0000000 -4.2857143 -3.5714286 -2.8571429 -2.1428571 -1.4285714 #> [7] -0.7142857 0.0000000 0.7142857 1.4285714 2.1428571 2.8571429 #> [13] 3.5714286 4.2857143 5.0000000