seq_along_cpp: Generate a sequence of values ranging from vector start to...

View source: R/RcppExports.R

seq_along_cppR Documentation

Generate a sequence of values ranging from vector start to vector end

Description

Creates a vector containing a sequence of values starting at the beginning and going to the end.

Usage

seq_along_cpp(along_with)

Arguments

along_with

A vec with length n.

Value

A vector of length n that contains integer values in [0, n - 1].

Author(s)

James J Balamuta

See Also

seq

Examples

# Call with the following data:
seq_along_cpp(1:10)
seq_along_cpp(5:10)

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