Learn R Programming

gmwm (version 2.0.0)

seq_cpp: Generate a sequence of values

Description

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

Usage

seq_cpp(a, b)

Arguments

a
An int, that denotes the starting point.
b
An int, that denotes the ending point.

Value

A vector containing values moving from a to b. There are no restrictions on A's range.

Examples

Run this code
#Call with the following data:
seq_cpp(3, 5)
seq_cpp(5, 3)

Run the code above in your browser using DataLab