Processing math: 100%
Skip to contents

Creates a vector containing a sequence of values starting at the initial point and going to the terminal point.

Usage

seq_len_cpp(length_out)

Arguments

length_out

An long unsigned int that denotes the number of points to use.

Value

A vector of length length_out that contains integer values in [0,lengthout1].

See also

Author

James J Balamuta

Examples

# Call with the following data:
seq_len_cpp(2)
#>      [,1]
#> [1,]    0
#> [2,]    1
seq_len_cpp(4)
#>      [,1]
#> [1,]    0
#> [2,]    1
#> [3,]    2
#> [4,]    3