RIntVector

Same as RVector, but holds a vector of integers instead of a vector of doubles.

Constructors

this
this(int r)

Allocate a new integer vector with r elements.

this
this(int[] v)

Allocate a new integer vector in R and copy the elements of v into it.

this
this(Robj rv, bool u = false)

Only call this if you understand the internals of this library.

Members

Functions

array
int[] array()

Create a new int[] and copy the contents of the current RIntVector into it.

empty
bool empty()
front
int front()

RIntVector is a range.

opAssign
void opAssign(int[] v)

Can do standard indexing of an RIntVector.

opIndex
int opIndex(int obs)
opIndexAssign
void opIndexAssign(int val, int obs)

Can do standard indexing of an RIntVector.

opSlice
RIntVector opSlice(int i, int j)

Returns a reference to a slice of an RIntVector as a new RIntVector.

popFront
void popFront()

RIntVector is a range.

print
void print()

Prints the contents of an RVector struct with an optional message.

robj
Robj robj()

Get the underlying Robj that will be returned to R.

Meta