seq_len_cpp: Generate a sequence of values ranging from 0 to n-1

View source: R/RcppExports.R

seq_len_cppR Documentation

Generate a sequence of values ranging from 0 to n-1

Description

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, length_out - 1].

Author(s)

James J Balamuta

See Also

seq

Examples

# Call with the following data:
seq_len_cpp(2)
seq_len_cpp(4)

coatless/r-to-armadillo documentation built on Nov. 16, 2023, 5:32 a.m.