colon: Vector creation

View source: R/colon.R

colonR Documentation

Vector creation

Description

Simulates the function colon() and its equivalent : operator from Matlab, which have a similar but not quite equivalent behavior when compared to seq() and : in R.

Usage

colon(a, b)

Arguments

a

initial number

b

final number

Value

A vector containing a sequence of integers going from a to b

Examples

colon(1, 4)
colon(4, 8)

matlab2r documentation built on Feb. 16, 2023, 10:39 p.m.

Related to colon in matlab2r...