Learn R Programming

gmwm (version 2.0.0)

seq_len_cpp: Generate a sequence of values based on supplied number

Description

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

Usage

seq_len_cpp(n)

Arguments

n
An int that denotes the length of the vector.

Value

A vector containing values moving from 1 to n.

Examples

Run this code
#Call with the following data:
seq_len_cpp(5)

Run the code above in your browser using DataLab