Generate a sequence of values ranging from a to b given a fixed amount of points.
seq_default.Rd
Creates a vector containing a sequence of values starting at the initial point and going to the terminal point.
Arguments
- from
A
long double
that denotes the starting point.- to
A
long double
indicating the end point.- length_out
A
long unsigned int
that denotes the number of points to use.
Examples
# Call with the following data:
seq_default(1, 2, 10)
#> [,1]
#> [1,] 1.000000
#> [2,] 1.111111
#> [3,] 1.222222
#> [4,] 1.333333
#> [5,] 1.444444
#> [6,] 1.555556
#> [7,] 1.666667
#> [8,] 1.777778
#> [9,] 1.888889
#> [10,] 2.000000
seq_default(2, 1, 10)
#> [,1]
#> [1,] 2.000000
#> [2,] 1.888889
#> [3,] 1.777778
#> [4,] 1.666667
#> [5,] 1.555556
#> [6,] 1.444444
#> [7,] 1.333333
#> [8,] 1.222222
#> [9,] 1.111111
#> [10,] 1.000000