Allocate a vector with room for 30 elements in R.
You should only use this function if you understand the internal workings of this library.
Pull a vector from an R interpreter embedded inside a D program.
Allocates a new vector in R with v.length elements and copies the elements of v into it.
Create a new double[] and copy the contents of the current RVector into it.
RVector is a range. You can use it with foreach.
Returns the number of elements.
Create a reference to the data in a matrix with one column.
Pull out the elements with index values in obs.
Returns a reference to a slice of an RVector as a new RVector.
RVector is a range. You can use it with foreach.
Prints the contents of an RVector struct with an optional message.
Get the underlying Robj that will be returned to R.
This struct is used to work with a vector that has been allocated in R. A pointer to the data is held, along with the dimensions. An RVector struct is reference counted to take care of protecting it from the R garbage collector while in use, and unprotecting when it is no longer used, as necessary.
You can refer to elements using standard vector notation, i.e., v[4].